/* ===================== HOMEPAGE v5: THE BOARD + THE BUILDER =====================
   Salesy top half: hero + agency tallies + agent board + design-your-agent
   walkthrough. Uses site tokens (variables.css). */

/* ---------- hero ---------- */
.hero-v5 { padding: clamp(2.75rem, 7vh, 5rem) 0 clamp(1.5rem, 3vh, 2.5rem); }
.hero-v5 h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.7rem, 5.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 21ch;
  text-wrap: balance;
}
.hero-v5 h1 .hero-line { display: block; overflow: hidden; padding: 0.08em 0.05em 0.16em 0.02em; margin: -0.08em -0.05em -0.16em -0.02em; }
.hero-v5 h1 .hero-line > span { display: block; }
.hero-v5 h1 em { font-style: italic; color: var(--accent); }
.hero-v5-sub {
  margin-top: 1.4rem;
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1.05rem;
  max-width: 58ch;
}
.hero-v5-cta { margin-top: 2rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero-v5-alt {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease-out);
}
.hero-v5-alt:hover { color: var(--text-muted); border-bottom-color: currentColor; }

/* hero grid: copy beside the live crew (viz component in team.css) */
@media (min-width: 1000px) {
  .hero-v5-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(340px, 36vw, 452px);
    gap: clamp(2.5rem, 5vw, 4.25rem);
    align-items: center;
  }
  .hero-v5 h1 { font-size: clamp(2.3rem, 3.3vw, 3.35rem); }
}

/* agency tallies */
.tallies {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.75rem);
  padding: 2.25rem 0 2.5rem;
}
.tally-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tally-label { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.2rem; max-width: 24ch; }

/* ---------- the board ---------- */
.board-section { padding: clamp(4rem, 7vw, 6rem) 0 clamp(3rem, 6vh, 4.5rem); }
.board-stage { position: relative; }
.board {
  --mx: 50%; --my: 0%; --sheen: 0;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 80px -22px rgba(0, 0, 0, 0.5);
}
/* top light-catch edge */
.board::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 4;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--accent-bright) 50%, var(--accent) 65%, transparent);
  opacity: 0.7;
}
/* gold sheen that follows the cursor across the board */
.board::after {
  content: '';
  position: absolute; inset: 0; z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: var(--sheen);
  transition: opacity 0.45s var(--ease-out);
  background: radial-gradient(560px circle at var(--mx) var(--my),
    rgba(232, 185, 104, 0.12), rgba(232, 185, 104, 0.03) 32%, transparent 62%);
}
/* ---------- living board: scan sweep, working rows, richer hover ---------- */
/* a soft light reads down the board, like the system scanning every row */
.brd-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 130px; z-index: 2;
  pointer-events: none; will-change: transform, opacity;
  background: linear-gradient(180deg, transparent 0%,
    rgba(232, 185, 104, 0.09) 46%, rgba(62, 207, 142, 0.13) 54%, transparent 100%);
  box-shadow: 0 1px 0 rgba(62, 207, 142, 0.18);
  animation: brdScan 8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}
@keyframes brdScan {
  0%   { transform: translateY(-150px); opacity: 0; }
  6%   { opacity: 1; }
  25%  { opacity: 1; }
  33%  { transform: translateY(var(--scan-travel, 880px)); opacity: 0; }
  100% { transform: translateY(var(--scan-travel, 880px)); opacity: 0; }
}
/* a working row: a progress sweep runs along its base + the dot glows */
.brd-item[data-state="running"] { position: relative; }
.brd-item[data-state="running"]::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 42%;
  z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  animation: brdRun 1.5s linear infinite;
}
@keyframes brdRun { from { left: -42%; } to { left: 100%; } }
.brd-item[data-state="running"] .brd-dot { box-shadow: 0 0 9px 1px var(--accent); }
/* richer hover: text sharpens, the outcome glows, soft gold light from the left */
.brd-row { transition: background 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out); }
.brd-item.brd-collapsible:not(.is-open):hover .brd-does { color: var(--text); }
.brd-item.brd-collapsible:not(.is-open):hover .brd-saves { text-shadow: 0 0 16px rgba(62, 207, 142, 0.4); }
.brd-item.brd-collapsible:not(.is-open) .brd-row:hover {
  box-shadow: inset 2px 0 22px -10px rgba(212, 160, 82, 0.5);
}
/* staggered reveal as the board scrolls into view (JS adds .brd-reveal;
   content is fully visible if JS never runs) */
.board.brd-reveal .brd-item { opacity: 0; transform: translateY(14px); }
.board.brd-reveal.is-in .brd-item {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.brd-caption {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.brd-caption .l { color: var(--success); display: inline-flex; align-items: center; gap: 0.45rem; }
.brd-caption .l::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--success); animation: consolePulse 2.4s infinite;
}
.brd-caption .r { color: var(--text-dim); }
.brd-head {
  display: grid;
  grid-template-columns: 64px 190px 1fr 220px 104px;
  gap: 1.25rem;
  padding: 0.7rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim);
}
.brd-item { border-bottom: 1px solid var(--border); }
.brd-item:last-child { border-bottom: none; }
/* hovering a live row highlights it */
.brd-item.brd-collapsible:not(.is-open):hover .brd-id { color: var(--accent-bright); }
.brd-row {
  display: grid;
  grid-template-columns: 64px 190px 1fr 220px 104px;
  gap: 1.25rem;
  align-items: baseline;
  width: 100%;
  padding: 1.05rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s;
}
.brd-row:hover, .brd-item.is-open .brd-row { background: var(--surface-hover); }
.brd-id { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); }
.brd-name { font-weight: 600; font-size: 0.95rem; color: var(--text); font-family: var(--font-mono); }
.brd-does { color: var(--text-muted); font-weight: 300; font-size: 0.9rem; }
.brd-saves {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--success);
}
.brd-status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim);
  justify-self: end;
}
.brd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; transition: background 0.3s; }
.brd-item[data-state="running"] .brd-dot { background: var(--accent); animation: fleetPulse 1.1s infinite; }
.brd-item[data-state="running"] .brd-status { color: var(--accent); }

.brd-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.brd-item.is-open .brd-detail { grid-template-rows: 1fr; }
.brd-detail > div { overflow: hidden; }
.brd-detail-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 0.35rem 1.5rem 1.5rem calc(64px + 1.25rem + 1.5rem);
}
.brd-detail-inner p { color: var(--text-muted); font-weight: 300; font-size: 0.92rem; max-width: 52ch; }
.brd-detail-inner p b { color: var(--text); font-weight: 500; }
.brd-detail-inner .where {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.brd-detail-inner .where i { font-style: normal; color: var(--success); }
.brd-detail-inner a.get {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.brd-detail-inner a.get:hover { color: var(--accent-bright); }
.brd-log {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 2;
  align-self: start;
}
.brd-log > span { display: block; color: var(--text-muted); }
.brd-log .ok { color: var(--success); margin-right: 0.4rem; }
.brd-log .tm { color: var(--text-dim); margin-right: 0.5rem; }

/* demand badges on top rows */
.brd-badge {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-top: 0.3rem;
}
.brd-badge::before { content: '\2605 '; font-size: 0.5rem; }

/* "+ more" static line (deliberately not interactive) */
.brd-more-line {
  padding: 1rem 1.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* legacy toggle (unused) */
.brd-more-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.brd-more-toggle:hover { background: var(--surface-hover); color: var(--text); }
.brd-more-toggle .n { color: var(--accent); }
.brd-more-toggle .caret { transition: transform 0.3s var(--ease-out); color: var(--text-dim); }
.brd-item.is-open .brd-more-toggle .caret { transform: rotate(180deg); }
.brd-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.1rem 2.5rem;
  padding: 0.5rem 1.5rem 1.4rem;
}
.brd-more-grid .m {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.85rem;
}
.brd-more-grid .m .nm { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text); white-space: nowrap; }
.brd-more-grid .m .ds { color: var(--text-dim); font-weight: 300; font-size: 0.78rem; }
.brd-more-note {
  padding: 0 1.5rem 1.4rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.brd-more-note a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* your-agent hero row: open by default - it IS the CTA. Flush with the
   table (no floating ring box: its corners fought the board's rounding). */
.brd-item.is-you {
  background: var(--accent-soft);
  border-top: 1px solid var(--accent-dim);
  animation: youGlow 3.4s ease-in-out infinite;
}
@keyframes youGlow {
  0%, 100% { background: var(--accent-soft); }
  50% { background: rgba(212, 160, 82, 0.15); }
}
.brd-item.is-you .brd-detail-inner {
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 1.8rem;
}
.brd-item.is-you .brd-row { padding: 1.4rem 1.5rem; }
.brd-item.is-you .brd-name { color: var(--accent-bright); font-size: 1.05rem; }
.brd-item.is-you .brd-does { color: var(--text); }
.brd-item.is-you .brd-saves { color: var(--accent-bright); font-weight: 600; }
.brd-item.is-you .brd-row:hover { background: rgba(212, 160, 82, 0.14); }
.brd-you-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.9rem; }
.brd-you-actions .btn-secondary { font-size: 0.88rem; }

/* builder step 2: describe + tools */
.builder-input {
  width: 100%;
  max-width: 640px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.6rem;
  transition: border-color 0.2s;
}
.builder-input:focus { outline: none; border-color: var(--accent-dim); }
.builder-input::placeholder { color: var(--text-dim); }
.builder-sublabel {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.7rem;
}
.builder-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.5rem; }
.builder-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.95rem;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.builder-tool::before { content: '+'; color: var(--text-dim); font-weight: 600; }
.builder-tool:hover { color: var(--text); border-color: var(--border-hover); }
.builder-tool.is-on {
  color: var(--accent-bright);
  border-color: var(--accent-dim);
  background: var(--accent-soft);
}
.builder-tool.is-on::before { content: '\2713'; color: var(--success); }

/* generating interstitial */
.builder-gen { max-width: 640px; }
.builder-gen-log {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 2.1;
  min-height: 170px;
  margin-bottom: 1rem;
}
.builder-gen-log .log-line { display: block; opacity: 0; transition: opacity 0.25s ease; }
.builder-gen-log .log-line.is-on { opacity: 1; }
.builder-gen-track { height: 2px; background: var(--border); position: relative; border-radius: 2px; overflow: hidden; }
.builder-gen-track i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.7s ease;
}

/* blueprint personalization */
.bp-quote {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}
.bp-quote span { color: var(--accent-bright); }

/* ---------- the builder ---------- */
.builder-section { padding: var(--section-padding); }
.builder {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #1c1c1f 0%, var(--surface) 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}
.builder::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--accent-bright) 50%, var(--accent) 65%, transparent);
  opacity: 0.7;
}
.builder-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.builder-bar .l { color: var(--accent); }
.builder-bar .r { color: var(--text-dim); }
.builder-stage { padding: clamp(1.75rem, 3.5vw, 2.75rem); }
.builder-step { display: none; }
.builder-step.is-active { display: block; animation: stepIn 0.5s var(--ease-out-expo); }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.builder-q {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.builder-hint { color: var(--text-muted); font-weight: 300; font-size: 0.92rem; margin-bottom: 1.75rem; max-width: 56ch; }

/* option rows (deliberately board-rows, not pill chips) */
.builder-opts { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.builder-opt {
  display: grid;
  grid-template-columns: 56px 210px 1fr auto;
  gap: 1.25rem;
  align-items: baseline;
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: var(--bg);
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.18s;
}
.builder-opt:last-child { border-bottom: none; }
.builder-opt:hover { background: var(--surface-hover); }
.builder-opt.is-selected { background: var(--accent-soft); }
.builder-opt .oid { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); }
.builder-opt .onm { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.builder-opt .oex { color: var(--text-dim); font-weight: 300; font-size: 0.84rem; }
.builder-opt .oref {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--success);
  white-space: nowrap;
  justify-self: end;
}
.builder-opt.is-selected .onm { color: var(--accent-bright); }

/* sign-off picker (single select) */
.builder-signoff::before { content: '\25CB'; color: var(--text-dim); font-weight: 400; }
.builder-signoff.is-on::before { content: '\25C9'; color: var(--accent); }

/* step 2 slider */
.builder-fader { max-width: 560px; margin-bottom: 0.5rem; }
.builder-fader label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.6rem;
}
.builder-fader output {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  color: var(--text); font-weight: 500;
}
.builder input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px; background: transparent; cursor: pointer;
}
.builder input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 40%), var(--border) var(--fill, 40%));
}
.builder input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 26px; margin-top: -12px;
  background: var(--text); border: none; border-radius: 2px;
  box-shadow: 0 0 0 1px var(--bg), 0 4px 14px rgba(0, 0, 0, 0.55);
}
.builder input[type="range"]::-moz-range-track { height: 2px; background: var(--border); }
.builder input[type="range"]::-moz-range-progress { height: 2px; background: var(--accent); }
.builder input[type="range"]::-moz-range-thumb { width: 14px; height: 26px; background: var(--text); border: none; border-radius: 2px; }
.builder-equiv {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--success);
  margin-bottom: 1.5rem;
}
.builder-equiv span { color: var(--text-dim); }

.builder-nav { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.75rem; flex-wrap: wrap; }
.builder-next {
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem;
  background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: 8px;
  padding: 0.9rem 1.7rem; cursor: pointer;
  transition: background 0.18s, transform 0.18s var(--ease-out);
}
.builder-next:hover:not(:disabled) { background: var(--accent-bright); transform: translateY(-2px); }
.builder-next:disabled { opacity: 0.45; cursor: not-allowed; }
.builder-back {
  font-size: 0.86rem; color: var(--text-dim);
  background: none; border: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
}
.builder-back:hover { color: var(--text-muted); }

/* step 3: the blueprint */
.bp-head { margin-bottom: 1.75rem; }
.bp-verdict {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 0.6rem;
}
.bp-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.12;
}
.bp-title em { font-style: italic; color: var(--accent); }
.bp-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
/* mini rail — the walkthrough of THEIR agent */
.bp-run { position: relative; padding-left: 1.75rem; }
.bp-rail, .bp-fill {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: 1px;
}
.bp-rail { background: var(--border); }
.bp-fill {
  background: linear-gradient(180deg, var(--accent-dim), var(--accent));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.6s linear;
}
.bp-station { position: relative; padding-bottom: 1.6rem; opacity: 0.35; transition: opacity 0.4s; }
.bp-station:last-child { padding-bottom: 0; }
.bp-station.is-lit { opacity: 1; }
.bp-node {
  position: absolute; left: -1.75rem; top: 5px;
  width: 11px; height: 11px; border-radius: 50%;
  margin-left: 1px;
  background: var(--bg);
  border: 1px solid var(--border-hover);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.bp-station.is-lit .bp-node {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow), 0 0 0 3px var(--accent-soft);
}
.bp-time { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.06em; }
.bp-station.is-lit .bp-time { color: var(--accent); }
.bp-station h4 { font-size: 0.98rem; font-weight: 600; margin: 0.15rem 0 0.2rem; }
.bp-station p { color: var(--text-muted); font-weight: 300; font-size: 0.86rem; max-width: 44ch; }

/* run bar: stamp + replay */
.bp-runbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-left: 1.75rem;
}
.bp-stamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--success);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.bp-stamp.is-on { opacity: 1; }
.bp-replay {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}
.bp-replay:hover { color: var(--accent-bright); border-color: var(--accent-dim); }

/* traveling dot on the mini rail */
.bp-dot {
  position: absolute;
  left: 6.5px;
  top: 6px;
  width: 11px;
  height: 11px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow), 0 0 0 4px var(--accent-soft);
  transition: top 0.8s cubic-bezier(0.45, 0, 0.55, 1);
  z-index: 1;
}

/* hours mini-slider inside the impact card */
.bp-card input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin-top: 0.8rem;
  background: transparent;
  cursor: pointer;
}
.bp-card input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 25%), var(--border) var(--fill, 25%));
}
.bp-card input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 22px;
  margin-top: -10px;
  background: var(--text);
  border: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--bg);
}
.bp-card input[type="range"]::-moz-range-track { height: 2px; background: var(--border); }
.bp-card input[type="range"]::-moz-range-progress { height: 2px; background: var(--accent); }
.bp-card input[type="range"]::-moz-range-thumb { width: 12px; height: 22px; background: var(--text); border: none; border-radius: 2px; }

.bp-side { display: grid; gap: 1.25rem; align-self: start; }
.bp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
}
.bp-card-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.7rem;
}
.bp-crew { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bp-agent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-bright);
  border: 1px solid var(--accent-dim);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
}
.bp-impact {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--success);
}
.bp-impact span { display: block; color: var(--text-dim); font-size: 0.72rem; margin-top: 0.25rem; }
.bp-ideas { list-style: none; }
.bp-ideas li {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.86rem;
  padding: 0.3rem 0;
  display: flex;
  gap: 0.6rem;
}
.bp-ideas li::before { content: '→'; color: var(--accent); flex: none; }
.bp-cta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.9rem; }
.bp-note { font-size: 0.78rem; color: var(--text-dim); max-width: 30ch; line-height: 1.5; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .brd-head { display: none; }
  .brd-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name status" "does does" "saves saves";
    gap: 0.35rem 1rem;
  }
  .brd-id { display: none; }
  .brd-name { grid-area: name; }
  .brd-does { grid-area: does; }
  .brd-saves { grid-area: saves; }
  .brd-status { grid-area: status; }
  .brd-detail-inner { grid-template-columns: 1fr; padding: 0.25rem 1.5rem 1.5rem; }
  .builder-opt { grid-template-columns: 1fr; gap: 0.2rem; }
  .builder-opt .oid { display: none; }
  .bp-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .brd-caption .l::before, .brd-item[data-state="running"] .brd-dot { animation: none; }
  .brd-item.is-you { animation: none; }
  .brd-detail, .brd-more-toggle .caret { transition: none; }
  .board::after { display: none; }
  .brd-scan { display: none; }
  .brd-item[data-state="running"]::after { display: none; }
  .board.brd-reveal .brd-item { opacity: 1; transform: none; }
  .builder-step.is-active { animation: none; }
  .bp-fill { transition: none; }
  .bp-station { transition: none; }
  .bp-dot { display: none; }
  .bp-stamp { transition: none; }
  .builder-next { transition: none; }
}
