/* =====================================================================
   About page: sci-fi / Tron theme (loaded by about.html only, after
   theme-light.css + immersive.css; body has .page-tron)
   ---------------------------------------------------------------------
   - One continuous backdrop for the whole page: a fixed neon grid with a
     purple horizon glow and a slow scan line, so sections never "cut".
   - js/tron.js draws a circuit trace down the left gutter that branches
     into every section and box, lighting up as you scroll.
   - Boxes become dark glass with cyan HUD corner brackets.
   Colours: graphite #1B1F2A family, purple #7C4DFF, cyan #5EE7FF.
   ===================================================================== */

body.page-tron {
  --tron-cyan: #5ee7ff;
  --tron-purple: #7c4dff;
  --tron-bg: #070912;
  --pp-ink: #eef0ff;
  --pp-muted: #a9aec8;
  --pp-bg: var(--tron-bg);
  --pp-surface: rgba(14, 17, 30, 0.82);
  --pp-line: rgba(94, 231, 255, 0.18);
  --text: #eef0ff;
  --text-muted: #a9aec8;
  --primary-light: #b8a2ff;
  --dark: var(--tron-bg);
  --dark-card: rgba(14, 17, 30, 0.82);
  --dark-card-hover: rgba(20, 24, 42, 0.92);
  --gradient-card: linear-gradient(180deg, rgba(16, 19, 34, 0.9), rgba(9, 11, 20, 0.92));
  background: var(--tron-bg);
  color: var(--text);
}
/* The light menu and its dropdowns keep their own (light) tokens */
.page-tron .navbar {
  --pp-ink: #1b1f2a; --pp-muted: #5c6174; --pp-line: #e7e3f3; --pp-surface: #fff;
  --text: #1b1f2a; --text-muted: #5c6174; --dark-card: #fff; --dark-card-hover: #f5f1ff;
  --gradient-card: linear-gradient(180deg, #fff, #fff);
}

/* ---------- Continuous backdrop ---------- */
.page-tron::before,
.page-tron::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.page-tron::before {
  background:
    radial-gradient(ellipse 90% 55% at 50% 112%, rgba(124, 77, 255, 0.34), transparent 70%),
    radial-gradient(ellipse 55% 45% at 0% 0%, rgba(94, 231, 255, 0.09), transparent 62%),
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(124, 77, 255, 0.12), transparent 65%),
    linear-gradient(rgba(94, 231, 255, 0.065) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(94, 231, 255, 0.065) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--tron-bg);
}
/* a faint scan line sweeping down the screen */
.page-tron::after {
  background: linear-gradient(180deg, transparent 0%, rgba(94, 231, 255, 0.07) 48%, rgba(94, 231, 255, 0.16) 50%, transparent 52%);
  background-size: 100% 220vh;
  animation: tron-scan 9s linear infinite;
  mix-blend-mode: screen;
}
@keyframes tron-scan { from { background-position: 0 -120vh; } to { background-position: 0 120vh; } }

/* Every band lets the backdrop through */
.page-tron > section,
.page-tron .ws-modules-bg,
.page-tron .section { background: transparent !important; }
.page-tron > section { position: relative; z-index: 1; }
.page-tron .ws-hero {
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(124, 77, 255, 0.42), transparent 70%),
    radial-gradient(40% 50% at 85% 60%, rgba(94, 231, 255, 0.12), transparent 70%) !important;
}
.page-tron .ws-hero::after { display: none; }
.page-tron .ws-outcomes {
  background: linear-gradient(90deg, transparent, rgba(124, 77, 255, 0.16) 20%, rgba(94, 231, 255, 0.1) 80%, transparent) !important;
  border-top: 1px solid rgba(94, 231, 255, 0.22);
  border-bottom: 1px solid rgba(94, 231, 255, 0.22);
}

/* ---------- Type ---------- */
.page-tron .section-label {
  font-family: 'Orbitron', var(--pp-font-display, sans-serif);
  color: var(--tron-cyan) !important;
  letter-spacing: 0.22em;
  text-shadow: 0 0 12px rgba(94, 231, 255, 0.55);
}
.page-tron .section-label .pp-icon { color: var(--tron-cyan); --pp-icon-accent: var(--tron-cyan); }
.page-tron :is(h1, h2, h3, h4, .section-title) { color: #f4f5ff; }
.page-tron :is(h2, .section-title) { text-shadow: 0 0 28px rgba(124, 77, 255, 0.45); }
.page-tron :is(p, li, .section-subtitle, .ws-video-meta p, .ws-image-meta p) { color: var(--text-muted); }
.page-tron h2 em,
.page-tron .role { color: var(--tron-cyan) !important; -webkit-text-fill-color: currentColor; }
.page-tron :is(.stat-number, .ws-outcome-number, .ws-module-number) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  text-shadow: 0 0 18px rgba(94, 231, 255, 0.7), 0 0 2px #5ee7ff;
}
.page-tron :is(.stat-label, .ws-outcome-label) { color: rgba(94, 231, 255, 0.8) !important; }

/* ---------- HUD boxes: dark glass, cyan corner brackets ---------- */
.page-tron :is(.experience-card, .ws-video-card, .ws-image-card, .ws-module-card, .ws-takeaway-card, .qr-card, .ws-video-subhead, .ws-for, .about-grid, .bm-box) {
  --hc: rgba(94, 231, 255, 0.9);
  --hs: 18px;
  --ht: 2px;
  background-image:
    linear-gradient(var(--hc), var(--hc)), linear-gradient(var(--hc), var(--hc)),
    linear-gradient(var(--hc), var(--hc)), linear-gradient(var(--hc), var(--hc)),
    linear-gradient(var(--hc), var(--hc)), linear-gradient(var(--hc), var(--hc)),
    linear-gradient(var(--hc), var(--hc)), linear-gradient(var(--hc), var(--hc)),
    linear-gradient(180deg, rgba(16, 19, 34, 0.9), rgba(9, 11, 20, 0.93)) !important;
  background-size:
    var(--hs) var(--ht), var(--ht) var(--hs), var(--hs) var(--ht), var(--ht) var(--hs),
    var(--hs) var(--ht), var(--ht) var(--hs), var(--hs) var(--ht), var(--ht) var(--hs), auto !important;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%, 0 0 !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  border: 1px solid rgba(124, 77, 255, 0.38) !important;
  border-radius: 6px !important;
  box-shadow: 0 0 0 1px rgba(94, 231, 255, 0.04), 0 22px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  transition: border-color .35s ease, box-shadow .35s ease, transform .4s ease;
}
.page-tron .about-grid { padding: clamp(1.25rem, 3vw, 2.25rem); }
.page-tron :is(.experience-card, .ws-video-card, .ws-image-card, .ws-module-card, .qr-card):hover {
  border-color: rgba(94, 231, 255, 0.75) !important;
  box-shadow: 0 0 0 1px rgba(94, 231, 255, 0.25), 0 0 34px rgba(94, 231, 255, 0.22), 0 22px 60px rgba(0, 0, 0, 0.5) !important;
}
/* Thumbs inside boxes follow the sharper corners */
.page-tron :is(.ws-video-thumb, .ws-image-thumb, .experience-thumb) { border-radius: 4px 4px 0 0; }
.page-tron .ws-reel-cover { background: #000; }
/* A box lights up when the circuit trace reaches it (js/tron.js) */
.page-tron .tron-lit { animation: tron-lit 1.1s ease-out 1; }
@keyframes tron-lit {
  0% { box-shadow: 0 0 0 1px rgba(94, 231, 255, 0.9), 0 0 46px rgba(94, 231, 255, 0.55), 0 22px 60px rgba(0, 0, 0, 0.5); }
  100% { box-shadow: 0 0 0 1px rgba(94, 231, 255, 0.04), 0 22px 60px rgba(0, 0, 0, 0.5); }
}

/* Inner panels of boxes (objectives, lists) */
.page-tron :is(.ws-module-objectives, .ws-takeaway-list li, .ws-for-list li) {
  background: rgba(94, 231, 255, 0.04) !important;
  border-color: rgba(94, 231, 255, 0.16) !important;
}
.page-tron .ws-objective-label,
.page-tron .ws-module-time { color: var(--tron-cyan) !important; background: rgba(94, 231, 255, 0.08) !important; border-color: rgba(94, 231, 255, 0.25) !important; }
.page-tron .ws-module-card::before,
.page-tron .ws-module-card::after { opacity: 0.5; }

/* ---------- Chips and tags ---------- */
.page-tron :is(.feature-tag, .skill-chip, .ws-tier-badge:not(.ws-reel-follow):not(.ws-tier-badge-paid), .ws-module-tools span, .ws-image-badge) {
  background: rgba(94, 231, 255, 0.06) !important;
  border: 1px solid rgba(94, 231, 255, 0.28) !important;
  color: #cdefff !important;
}
.page-tron .ws-video-subhead-icon {
  background: rgba(124, 77, 255, 0.18) !important;
  border: 1px solid rgba(124, 77, 255, 0.5);
  box-shadow: 0 0 16px rgba(124, 77, 255, 0.45);
}
.page-tron .ws-video-subhead-icon .pp-icon { color: #d9ccff; }
.page-tron .ws-reel-follow { background: #c6ff3d; color: #231f20; border-color: #c6ff3d; }

/* Photo frame on the story */
.page-tron .about-photo img {
  border: 1px solid rgba(94, 231, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(94, 231, 255, 0.06), 0 0 40px rgba(94, 231, 255, 0.25);
}

/* QR cards keep a white frame so codes still scan */
.page-tron .qr-card-frame { background: #fff !important; border-radius: 6px; }
.page-tron .qr-card-meta strong, .page-tron .qr-card-meta b { color: #fff; }

/* ---------- Circuit trace (js/tron.js) ---------- */
.tron-traces {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.tron-traces path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tron-traces .t-base { stroke: rgba(94, 231, 255, 0.16); stroke-width: 1.5; }
.tron-traces .t-lit { stroke: #5ee7ff; stroke-width: 2; filter: drop-shadow(0 0 4px #5ee7ff) drop-shadow(0 0 10px rgba(94, 231, 255, 0.6)); }
.tron-traces .t-branch { transition: stroke-dashoffset .9s cubic-bezier(.22, 1, .36, 1); }
.tron-traces .t-node { fill: #070912; stroke: rgba(94, 231, 255, 0.35); stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.tron-traces .t-node.on { fill: #5ee7ff; stroke: #c9f7ff; filter: drop-shadow(0 0 6px #5ee7ff); }
.tron-traces .t-pin { fill: #7c4dff; opacity: 0; transition: opacity .5s .4s; }
.tron-traces .t-pin.on { opacity: 1; filter: drop-shadow(0 0 6px #7c4dff); }
.tron-traces .t-packet { fill: #fff; filter: drop-shadow(0 0 6px #5ee7ff) drop-shadow(0 0 14px #5ee7ff); }

@media (max-width: 768px) {
  .page-tron::before { background-size: auto, auto, auto, 40px 40px, 40px 40px, auto; }
  .page-tron :is(.experience-card, .ws-video-card, .ws-image-card, .ws-module-card, .ws-takeaway-card, .qr-card, .ws-video-subhead, .ws-for, .about-grid, .bm-box) { --hs: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-tron::after { animation: none; opacity: 0; }
  .page-tron .tron-lit { animation: none; }
  .tron-traces .t-branch { transition: none; }
}

/* Outline buttons: neon outline on the dark backdrop */
.page-tron .btn-outline {
  background: rgba(94, 231, 255, 0.04) !important;
  color: #eaf9ff !important;
  border: 1px solid rgba(94, 231, 255, 0.6) !important;
  box-shadow: 0 0 18px rgba(94, 231, 255, 0.18);
}
.page-tron .btn-outline:hover { background: rgba(94, 231, 255, 0.14) !important; box-shadow: 0 0 26px rgba(94, 231, 255, 0.35); }
.page-tron .ws-for { padding: clamp(1.25rem, 3vw, 2rem); }

/* =====================================================================
   How I Teach: "The Bryan Method" (about.html #how-i-teach, js/teach.js)
   Boxes use the HUD look above via .bm-box. Animations start when
   js/teach.js adds .is-armed then .is-on (on view); without JS or with
   reduced motion everything shows in its finished state.
   ===================================================================== */
#how-i-teach { --bm-pink: #ff5ca8; --bm-lime: #c6ff3d; }
#how-i-teach .bm-box { text-align: left; padding: clamp(1.25rem, 3vw, 2.25rem); }
#how-i-teach > .bm-box + .bm-box,
#how-i-teach > .bm-levels + .bm-box,
#how-i-teach > .bm-levels-head { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.bm-tm { font-size: .38em; vertical-align: super; color: var(--tron-cyan); text-shadow: none; }
.bm-kicker {
  display: inline-block;
  font-family: 'Orbitron', var(--pp-font-display, sans-serif);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bm-lime);
  margin-bottom: .75rem;
}
#how-i-teach h3 em, #how-i-teach .bm-truth em { font-style: normal; color: var(--tron-cyan); }

/* --- 1. Manifesto --- */
#how-i-teach .bm-manifesto { text-align: center; }
.bm-myth {
  font-family: var(--pp-font-display, 'Clash Display', sans-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  color: #8d92ad !important;
  margin: 0 0 .6rem;
}
.bm-strike { position: relative; display: inline; }
.bm-strike::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%; top: 52%;
  height: 4px;
  border-radius: 4px;
  background: var(--bm-pink);
  box-shadow: 0 0 12px var(--bm-pink);
  transform: rotate(-2deg);
  transform-origin: left center;
}
.bm-truth {
  font-family: var(--pp-font-display, 'Clash Display', sans-serif);
  font-size: clamp(1.45rem, 3.4vw, 2.3rem);
  line-height: 1.2;
  color: #fff !important;
  max-width: 30ch;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
}
.bm-equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem .7rem;
}
.bm-term {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: rgba(124, 77, 255, .14);
  border: 1px solid rgba(124, 77, 255, .55);
  color: #ece6ff;
  font-weight: 700;
  white-space: nowrap;
}
.bm-term .pp-icon { width: 1.25rem; height: 1.25rem; color: var(--tron-cyan); --pp-icon-accent: var(--bm-pink); }
.bm-term--result {
  background: linear-gradient(90deg, rgba(198, 255, 61, .18), rgba(94, 231, 255, .18));
  border-color: var(--bm-lime);
  color: #fff;
  box-shadow: 0 0 26px rgba(198, 255, 61, .35);
}
.bm-term--result .pp-icon { color: var(--bm-lime); }
.bm-op {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tron-cyan);
  text-shadow: 0 0 12px rgba(94, 231, 255, .8);
}

/* --- 2. Hot-take machine --- */
.bm-takes-head h3 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); margin: 0 0 .5rem; }
.bm-takes-head p { max-width: 62ch; margin: 0 0 1.1rem; }
.bm-take-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.bm-take-tabs button {
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  padding: .5rem .9rem;
  border-radius: 999px;
  color: #cdefff;
  background: rgba(94, 231, 255, .05);
  border: 1px solid rgba(94, 231, 255, .3);
  transition: background .25s, border-color .25s, color .25s, transform .2s;
}
.bm-take-tabs button:hover { border-color: var(--tron-cyan); transform: translateY(-1px); }
.bm-take-tabs button[aria-selected="true"] {
  background: var(--tron-cyan);
  border-color: var(--tron-cyan);
  color: #06111a;
  box-shadow: 0 0 18px rgba(94, 231, 255, .5);
}
.bm-take-tabs button:focus-visible, .bm-next:focus-visible { outline: 2px solid var(--bm-lime); outline-offset: 3px; }
.bm-take-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: .9rem;
}
.bm-quote {
  position: relative;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 14px;
  transition: opacity .3s ease, transform .3s ease;
}
.bm-quote p { margin: .45rem 0 0; color: #eef0ff !important; font-size: 1.02rem; line-height: 1.45; }
.bm-quote--pro { background: rgba(124, 77, 255, .16); border: 1px solid rgba(124, 77, 255, .6); border-bottom-left-radius: 3px; }
.bm-quote--anti { background: rgba(255, 92, 168, .1); border: 1px solid rgba(255, 92, 168, .55); border-bottom-right-radius: 3px; }
.bm-who {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bm-who { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; letter-spacing: .04em; }
.bm-who::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.bm-quote--pro .bm-who { color: #c4b2ff; }
.bm-quote--anti .bm-who { color: #ff9ccb; }
.bm-vs {
  align-self: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--bm-lime);
  text-shadow: 0 0 14px rgba(198, 255, 61, .7);
}
.bm-meter {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.6rem 0 1.1rem;
}
.bm-meter-end { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bm-meter-end:first-child { color: #c4b2ff; }
.bm-meter-end:last-child { color: #ff9ccb; }
.bm-meter-track {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, #7c4dff, #5ee7ff 50%, #ff5ca8);
  box-shadow: 0 0 14px rgba(94, 231, 255, .3);
}
.bm-meter-knot {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0b0e1a;
  border: 2px solid var(--bm-lime);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(198, 255, 61, .55);
  transition: left .7s cubic-bezier(.34, 1.56, .64, 1);
}
.bm-verdict {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: rgba(198, 255, 61, .07);
  border: 1px dashed rgba(198, 255, 61, .55);
}
.bm-verdict .bm-who { color: var(--bm-lime); }
.bm-verdict p {
  margin: .45rem 0 0;
  color: #fff !important;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.45;
  transition: opacity .3s ease, transform .3s ease;
}
.bm-next {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  color: #06111a;
  background: var(--bm-lime);
  border: 0;
  box-shadow: 0 0 18px rgba(198, 255, 61, .4);
  transition: transform .2s, box-shadow .2s;
}
.bm-next:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(198, 255, 61, .6); }
.bm-next .pp-icon { width: 1rem; height: 1rem; }
.bm-takes.is-swapping .bm-quote,
.bm-takes.is-swapping .bm-verdict p { opacity: 0; transform: translateY(6px); }

/* --- 3. Levels: six wired boxes passing data (js/teach.js) ---
   Each card is a subgrid of 5 rows (header, screen, title, text, result)
   so every row lines up across the cards. The base styles are the
   finished state; .bm-run (set by JS when motion is allowed) adds the
   idle / running / done states. */
.bm-levels-head { text-align: center; }
.bm-levels-head h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .4rem; }
.bm-levels-head p { margin: 0 auto 1.5rem; max-width: 52ch; }
.bm-pipe { position: relative; }
.bm-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.bm-wires path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bm-wires .w-base { stroke: rgba(94, 231, 255, .22); stroke-width: 2; stroke-dasharray: 4 6; }
.bm-wires .w-lit { stroke: var(--bm-lime); stroke-width: 2.5; filter: drop-shadow(0 0 5px rgba(198, 255, 61, .8)); }
.bm-wires .w-end { fill: #070912; stroke: rgba(94, 231, 255, .55); stroke-width: 2; }
.bm-wires .w-end.on { fill: var(--bm-lime); stroke: var(--bm-lime); }
.bm-packet {
  position: absolute;
  left: 0; top: 0;
  z-index: 3;
  pointer-events: none;
  transform: translate(-50%, -50%);
  padding: .28rem .6rem;
  border-radius: 6px;
  white-space: nowrap;
  font: 700 .72rem/1.2 ui-monospace, 'Cascadia Code', Consolas, monospace;
  color: #06111a;
  background: var(--bm-lime);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, .25), 0 0 22px rgba(198, 255, 61, .75);
  opacity: 0;
  transition: opacity .2s;
}
.bm-packet.on { opacity: 1; }

.bm-levels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(2rem, 4vw, 3.25rem);
  row-gap: 3.5rem;
}
#how-i-teach .bm-level {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: .7rem;
  align-content: start;
  padding: 1.15rem 1.15rem 1.05rem;
  margin: 0;
  position: relative;
  z-index: 1;
  transition: opacity .4s ease, border-color .35s ease, box-shadow .35s ease;
}
.bm-level-top { display: flex; align-items: center; gap: .6rem; }
.bm-lv {
  font-family: 'Orbitron', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  padding: .3rem .55rem;
  border-radius: 5px;
  color: #06111a;
  background: var(--tron-cyan);
  flex: none;
}
.bm-level--boss .bm-lv { background: var(--bm-pink); color: #fff; }
.bm-file {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 .78rem ui-monospace, 'Cascadia Code', Consolas, monospace;
  color: #9fb4d6;
  background: none;
  padding: 0;
}
.bm-led { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--tron-cyan); box-shadow: 0 0 8px var(--tron-cyan); }
.bm-level h4 { margin: .15rem 0 0; font-size: 1.2rem; align-self: end; }
.bm-level p { margin: 0; font-size: .95rem; line-height: 1.55; }
.bm-unlock {
  align-self: end;
  padding-top: .65rem;
  border-top: 1px dashed rgba(94, 231, 255, .2);
  font: 700 .74rem ui-monospace, 'Cascadia Code', Consolas, monospace;
  color: var(--bm-lime);
  background: none;
}
.bm-unlock::before { content: '> '; color: var(--tron-cyan); }
.page-tron .bm-level--boss { --hc: rgba(255, 92, 168, .95); }

/* Mini screens */
.bm-screen {
  height: 152px;
  border-radius: 8px;
  overflow: hidden;
  background: #04060d;
  border: 1px solid rgba(94, 231, 255, .22);
  box-shadow: inset 0 0 30px rgba(124, 77, 255, .12);
  display: flex;
  flex-direction: column;
}
.bm-scr-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  background: rgba(94, 231, 255, .06);
  border-bottom: 1px solid rgba(94, 231, 255, .14);
  font: 600 .66rem ui-monospace, 'Cascadia Code', Consolas, monospace;
  color: #7f8bb0;
  white-space: nowrap;
  overflow: hidden;
}
.bm-scr-bar i { width: 7px; height: 7px; border-radius: 50%; background: #2b3350; flex: none; }
.bm-scr-bar i:first-child { background: #ff5ca8; }
.bm-scr-bar i:nth-child(2) { background: #f5c542; }
.bm-scr-bar i:nth-child(3) { background: #4ade80; }
.bm-scr-bar span { margin-left: 6px; overflow: hidden; text-overflow: ellipsis; }
.bm-scr-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  font: 500 .74rem/1.35 ui-monospace, 'Cascadia Code', Consolas, monospace;
  color: #cfe3ff;
  min-width: 0;
}
.bm-scr-body .bm-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-scr-body b { color: var(--tron-cyan); font-weight: 700; }
.bm-scr-body q { color: #ffb86b; quotes: '"' '"'; }
.bm-scr-body .bm-ok { color: var(--bm-lime); font-weight: 700; }
.bm-scr-body .bm-warn { color: #ff8fc4; font-weight: 700; }
.bm-row { display: flex; align-items: center; gap: 7px; }
.bm-gauge { flex: 1; min-width: 40px; height: 7px; border-radius: 6px; background: rgba(94, 231, 255, .1); overflow: hidden; display: inline-block; vertical-align: middle; }
.bm-l > .bm-gauge { width: 55%; }
.bm-fill { display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, var(--tron-cyan), var(--bm-lime)); }
.bm-fill--hype { background: linear-gradient(90deg, #7c4dff, #b8a2ff); }
.bm-fill--doom { background: linear-gradient(90deg, #ff5ca8, #ff9ccb); }
.bm-fill--win { background: linear-gradient(90deg, var(--bm-lime), #f5ff9e); box-shadow: 0 0 10px rgba(198, 255, 61, .7); }
.bm-tag { flex: none; width: 3.2em; font-weight: 700; font-size: .66rem; }
.bm-tag--hype { color: #c4b2ff; }
.bm-tag--doom { color: #ff9ccb; }
.bm-team { flex: none; width: 4.6em; font-weight: 700; font-size: .66rem; color: #9fb4d6; }
.bm-row .bm-num { flex: none; min-width: 2.6em; text-align: right; }
.bm-num { color: #fff; font-weight: 700; }
.bm-big { font-size: 1rem; color: var(--bm-lime); }
.bm-strike-l { color: #8d92ad; text-decoration-color: var(--bm-pink); text-decoration-thickness: 2px; }
.bm-bubble { align-self: flex-start; max-width: 92%; padding: 4px 8px; border-radius: 8px; }
.bm-bubble--me { align-self: flex-end; background: rgba(124, 77, 255, .35); color: #fff; border-bottom-right-radius: 2px; }
.bm-bubble--ai { background: rgba(94, 231, 255, .1); border: 1px solid rgba(94, 231, 255, .25); border-bottom-left-radius: 2px; }
.bm-run-btn { flex: none; padding: 2px 9px; border-radius: 5px; background: var(--tron-cyan); color: #06111a; font-weight: 700; }

/* Running states (only when JS runs the pipeline with motion allowed) */
.bm-run .bm-level { opacity: .5; }
.bm-run .bm-level .bm-led { background: #3a4466; box-shadow: none; }
.bm-run .bm-level:not(.is-active):not(.is-done) .bm-l { opacity: 0; }
.bm-run .bm-level:not(.is-active):not(.is-done) .bm-scr-body::before {
  content: 'waiting for input_';
  color: #56607f;
  animation: bm-caret 1s steps(1) infinite;
}
.bm-run .bm-level:not(.is-active):not(.is-done) .bm-scr-body { justify-content: center; }
@keyframes bm-caret { 50% { opacity: .35; } }
.bm-run .bm-level.is-active,
.bm-run .bm-level.is-done { opacity: 1; }
.bm-run .bm-level.is-active { border-color: rgba(198, 255, 61, .8) !important; box-shadow: 0 0 0 1px rgba(198, 255, 61, .35), 0 0 38px rgba(198, 255, 61, .25), 0 22px 60px rgba(0, 0, 0, .5) !important; }
.bm-run .bm-level.is-active .bm-led { background: var(--bm-lime); box-shadow: 0 0 10px var(--bm-lime); animation: bm-caret .5s steps(1) infinite; }
.bm-run .bm-level.is-done .bm-led { background: var(--tron-cyan); box-shadow: 0 0 8px var(--tron-cyan); }
.bm-run .bm-level.is-active .bm-l { animation: bm-line .35s ease both; animation-delay: calc(var(--d, 0) * 1s); }
.bm-run .bm-level.is-active .bm-fill { animation: bm-grow 1s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--d, 0) * 1s); }
.bm-run .bm-level.is-active .bm-run-btn { animation: bm-press .5s ease 1.9s both; }
.bm-run .bm-level.is-active .bm-strike-l { animation: bm-strikeon .4s ease 1s both; }
@keyframes bm-line { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes bm-grow { from { width: 0; } }
@keyframes bm-press { 40% { transform: scale(.85); background: var(--bm-lime); } }
@keyframes bm-strikeon { from { text-decoration-color: transparent; color: #cfe3ff; } }
.bm-run .bm-level--boss.is-done { box-shadow: 0 0 0 1px rgba(255, 92, 168, .5), 0 0 46px rgba(255, 92, 168, .35), 0 22px 60px rgba(0, 0, 0, .5) !important; }

/* --- 4. Vital signs --- */
#how-i-teach .bm-vitals { text-align: center; }
.bm-vitals-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.bm-vital { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .4rem; }
.bm-vital strong {
  font-family: var(--pp-font-display, 'Clash Display', sans-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 18px rgba(94, 231, 255, .7);
}
.bm-vital span { font-size: .85rem; color: var(--pp-muted); max-width: 18ch; }
.bm-bar { width: min(150px, 90%); height: 14px; margin-bottom: .55rem; border-radius: 10px; border: 1px solid rgba(198, 255, 61, .6); padding: 2px; }
.bm-bar i { display: block; height: 100%; width: 92%; border-radius: 8px; background: linear-gradient(90deg, var(--tron-cyan), var(--bm-lime)); box-shadow: 0 0 10px rgba(198, 255, 61, .6); }

/* --- Play-on-view animations (JS adds .is-armed, then .is-on in view) --- */
@media (prefers-reduced-motion: no-preference) {
  .is-armed .bm-strike::after { transform: rotate(-2deg) scaleX(0); transition: transform .6s cubic-bezier(.65, 0, .35, 1) .5s; }
  .is-armed .bm-truth { opacity: 0; transform: translateY(10px); transition: opacity .6s ease 1.15s, transform .6s ease 1.15s; }
  .is-armed .bm-equation > * { opacity: 0; transform: scale(.6); transition: opacity .35s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(1.7s + var(--i) * .16s); }
  .is-armed.is-on .bm-strike::after { transform: rotate(-2deg) scaleX(1); }
  .is-armed.is-on .bm-truth { opacity: 1; transform: none; }
  .is-armed.is-on .bm-equation > * { opacity: 1; transform: none; }
  .is-armed.is-on .bm-term--result { animation: bm-glow 2.4s ease-in-out 3s infinite; }
  @keyframes bm-glow { 50% { box-shadow: 0 0 44px rgba(198, 255, 61, .65); } }

  .is-armed .bm-bar i { width: 0; transition: width 1.6s cubic-bezier(.22, 1, .36, 1) .3s; }
  .is-armed.is-on .bm-bar i { width: 92%; }

  .bm-meter-knot { animation: bm-bob 2.8s ease-in-out infinite; }
  @keyframes bm-bob { 50% { transform: translate(-50%, -62%); } }
}

@media (max-width: 900px) {
  .bm-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-vitals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
}
@media (max-width: 600px) {
  .bm-levels { grid-template-columns: 1fr; }
  .bm-take-stage { grid-template-columns: 1fr; }
  .bm-vs { justify-self: center; }
  .bm-term { white-space: normal; }
  .bm-equation { flex-direction: column; gap: .35rem; }
  .bm-op { font-size: 1.2rem; line-height: 1; }
  .bm-myth { font-size: 1.05rem; }
  .bm-take-tabs button { font-size: .82rem; }
}

/* About shares the workshop page style but has no sticky booking bar, so it doesn't need the
   bar's 90px of room under the footer on phones (css/styles.css .workshop-page) */
@media (max-width: 768px) { body.page-tron.workshop-page { padding-bottom: 0; } }
