/* ============================================================
   Fold — the working parts, in the page
   ------------------------------------------------------------
   The race to $100K, Explore, the rails, the burn and the notes,
   as in-flow sections under the hero instead of behind overlays.
   Same tokens and the same type as the rest of the site.
   ============================================================ */

:root {
  --bpt-bg: #101010;
  --bpt-panel: #161718;
  --bpt-text: #f5f5f5;
  --bpt-muted: #a1a6aa;
  --bpt-dim: #6e7479;
  --bpt-cyan: var(--accent, #51dcfb);
  --bpt-hair: #2f3337;
  --bpt-mono: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace);
  --bpt-display: var(--font-display, "Cinzel", Georgia, serif);
}

.bpt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: var(--bpt-bg);
  border-top: 1px solid var(--bpt-hair);
  padding: 64px 0 60px;
}
.bpt__wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.bpt__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bpt-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bpt-cyan);
  margin: 0 0 14px;
}
.bpt__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bpt-cyan);
  box-shadow: 0 0 0 0 rgba(81, 220, 251, 0.55);
  animation: bpt-pulse 2.4s ease-out infinite;
}
@keyframes bpt-pulse {
  0% { box-shadow: 0 0 0 0 rgba(81, 220, 251, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(81, 220, 251, 0); }
  100% { box-shadow: 0 0 0 0 rgba(81, 220, 251, 0); }
}
.bpt__h2 {
  font-family: var(--bpt-display);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--bpt-text);
  margin: 0 0 10px;
}
.bpt__sub {
  font-family: var(--bpt-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--bpt-muted);
  margin: 0 0 28px;
  max-width: 760px;
}
.bpt__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-family: var(--bpt-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bpt-cyan);
  text-decoration: none;
  border: 1px solid var(--bpt-hair);
  padding: 10px 16px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.bpt__more:hover {
  border-color: var(--bpt-cyan);
  background: rgba(81, 220, 251, 0.06);
}

/* ---------- the race to $100K ---------- */
.bpt-race {
  border: 1px solid var(--bpt-hair);
  border-bottom: none;
}
.bpt-race__row {
  display: grid;
  grid-template-columns: 190px 1fr 108px;
  gap: 16px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--bpt-hair);
  text-decoration: none;
  transition: background 0.22s ease;
}
.bpt-race__row:hover { background: rgba(255, 255, 255, 0.025); }
.bpt-race__name {
  font-family: var(--bpt-mono);
  font-size: 12px;
  color: var(--bpt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bpt-race__sym { color: var(--bpt-dim); }
.bpt-race__track {
  position: relative;
  height: 8px;
  background: #1c1e20;
  border: 1px solid var(--bpt-hair);
}
.bpt-race__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(81, 220, 251, 0.35), var(--bpt-cyan));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.bpt-race__cap {
  font-family: var(--bpt-mono);
  font-size: 12px;
  color: var(--bpt-cyan);
  text-align: right;
}
.bpt-race__goal {
  display: flex;
  justify-content: space-between;
  font-family: var(--bpt-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bpt-dim);
  padding: 12px 18px;
  border: 1px solid var(--bpt-hair);
}

/* ---------- explore ---------- */
/* Collapsed borders rather than a hairline background: a row that does not
   fill leaves page, not a grey block. */
.bpt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.bpt-app {
  border: 1px solid var(--bpt-hair);
  margin: -1px 0 0 -1px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bpt-bg);
  padding: 18px;
  text-decoration: none;
  min-height: 132px;
  transition: background 0.22s ease;
}
.bpt-app:hover { background: var(--bpt-panel); }
.bpt-app__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.bpt-app__name {
  font-family: var(--bpt-display);
  font-size: 19px;
  color: var(--bpt-text);
}
.bpt-app__age {
  font-family: var(--bpt-mono);
  font-size: 10px;
  color: var(--bpt-dim);
  white-space: nowrap;
}
.bpt-app__line {
  font-family: var(--bpt-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--bpt-muted);
  flex: 1;
}
.bpt-app__moves {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bpt-tag {
  font-family: var(--bpt-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bpt-cyan);
  border: 1px solid var(--bpt-hair);
  padding: 3px 7px;
}
.bpt-tag--muted { color: var(--bpt-dim); }

/* ---------- four rules ---------- */
.bpt-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.bpt-rule {
  background: var(--bpt-bg);
  border: 1px solid var(--bpt-hair);
  margin: -1px 0 0 -1px;
  padding: 22px 20px;
}
.bpt-rule__n {
  font-family: var(--bpt-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--bpt-cyan);
}
.bpt-rule__t {
  font-family: var(--bpt-display);
  font-size: 20px;
  color: var(--bpt-text);
  margin: 10px 0 8px;
}
.bpt-rule__d {
  font-family: var(--bpt-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--bpt-muted);
}

/* ---------- the burn / the books ---------- */
.bpt-figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.bpt-fig {
  background: var(--bpt-bg);
  border: 1px solid var(--bpt-hair);
  margin: -1px 0 0 -1px;
  padding: 20px;
}
.bpt-fig__v {
  font-family: var(--bpt-mono);
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--bpt-text);
  font-variant-numeric: tabular-nums;
}
.bpt-fig__v--accent { color: var(--bpt-cyan); }
.bpt-fig__k {
  font-family: var(--bpt-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bpt-dim);
  margin-top: 8px;
}

/* ---------- the notes ---------- */
.bpt-notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.bpt-note {
  background: var(--bpt-bg);
  border: 1px solid var(--bpt-hair);
  margin: -1px 0 0 -1px;
  padding: 14px 16px;
  text-decoration: none;
  display: flex;
  gap: 10px;
  align-items: baseline;
  transition: background 0.22s ease;
}
.bpt-note:hover { background: var(--bpt-panel); }
.bpt-note__n {
  font-family: var(--bpt-mono);
  font-size: 10px;
  color: var(--bpt-cyan);
}
.bpt-note__t {
  font-family: var(--bpt-mono);
  font-size: 12px;
  color: var(--bpt-muted);
}

/* ---------- reveal ---------- */
.bpt-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.bpt-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  .bpt { padding: 46px 0 42px; }
  .bpt__wrap { padding: 0 16px; }
  .bpt-race__row { grid-template-columns: 1fr 74px; gap: 10px; }
  .bpt-race__track { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .bpt-reveal { opacity: 1; transform: none; transition: none; }
  .bpt-race__fill { transition: none; }
  .bpt__dot { animation: none; }
}
