.bm-page { width: var(--page); margin: 0 auto; }
.bm-page [hidden] { display: none !important; }
.bm-page.page-columns, .bm-page .page-columns, #bm-explorer.page-columns { display: block !important; }
.bm-page .page-columns > * { grid-column: auto !important; }
.bm-heading { max-width: 820px; margin: 3rem 0 1.5rem; }
.bm-heading .eyebrow { color: var(--gold); margin-bottom: .7rem; }
.bm-heading h1 { color: var(--paper); font-size: clamp(2.2rem, 7vw, 4.6rem); line-height: 1.06; margin: 0 0 1rem; }
.bm-heading h1 em { color: var(--gold); }
.bm-heading > p:last-child { color: var(--soft); font-size: 1.05rem; max-width: 64ch; }
.bm-loading { color: var(--soft); }
.bm-page button { font-family: var(--sans); }
.bm-page button:focus-visible, .bm-page input:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.bm-panel { position: relative; margin-bottom: 1.5rem; padding: clamp(1.25rem, 3vw, 1.9rem); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.bm-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: var(--radius) var(--radius) 0 0; background: var(--rainbow); }
.bm-panel .eyebrow { margin-bottom: .3rem; }
.bm-panel h2 { margin: 0 0 .5rem; padding: 0; border: 0; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.bm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .8rem 1.5rem; }
.bm-transport { display: flex; flex-wrap: wrap; gap: .5rem; }
.bm-play { padding: .6rem 1.4rem; border: 0; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 1rem; font-weight: 600; cursor: pointer; }
.bm-btn { padding: .55rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-size: .88rem; cursor: pointer; }
.bm-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.bm-story > p:not(.eyebrow) { max-width: 80ch; }
.bm-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 1.2rem; }
.bm-step { padding: 1rem 1.1rem; border: 1px solid var(--paper-line); border-radius: 10px; background: #fffaf0; font-size: .9rem; }
.bm-step h3 { margin: .4rem 0 .3rem; color: var(--ink); font-size: 1.15rem; }
.bm-step p { margin: 0; }
.bm-n { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--ink); color: var(--gold); font-family: var(--mono); font-size: .72rem; }
.bm-story a { color: var(--pink-ink); }
.bm-method { max-width: 90ch; margin: 1.75rem 0; color: var(--soft); font-size: .82rem; }
.bm-method a { color: var(--gold); }
.bm-signoff { margin: 2rem 0; text-align: center; font-family: var(--serif); font-size: 1.2rem; }
.bm-status { margin: 1rem 0 0; padding: .55rem .8rem; border-radius: 8px; background: #fdf0cf; font-size: .88rem; }
.bm-fine { margin: .8rem 0 0; color: var(--muted); font-size: .78rem; }
@media (max-width: 1000px) { .bm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bm-steps { grid-template-columns: minmax(0, 1fr); } }

/* Two microphones and the picture */
.bm-mics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
.bm-mic { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1.5px solid var(--paper-line); border-radius: 12px; background: #fffaf0; color: var(--ink); text-align: left; cursor: pointer; }
.bm-mic strong { display: block; font-size: 1rem; }
.bm-mic small { color: var(--muted); font-size: .8rem; }
.bm-mic svg { width: 64px; height: 64px; }
.bm-mic[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.bm-mic[aria-pressed="true"] small { color: var(--soft); }
.bm-graph { position: relative; margin-top: 1rem; padding: .8rem; border-radius: 12px; background: linear-gradient(180deg, #2a2236, #1a1422); }
.bm-graph canvas, .bm-graph svg { display: block; width: 100%; height: auto; }
.bm-graph svg { position: absolute; inset: .8rem; width: calc(100% - 1.6rem); height: calc(100% - 1.6rem); }
.bm-curve { fill: none; stroke-width: 2.5; opacity: .35; }
.bm-curve.is-on { opacity: 1; stroke-width: 3.5; }
.bm-curve[data-curve="mic"] { stroke: #c9a3f0; }
.bm-curve[data-curve="speaker"] { stroke: #ffb38a; }
/* axis labels are HTML, so they stay readable however narrow the graph gets */
.bm-louder { position: absolute; top: 1rem; left: 1.2rem; margin: 0; color: #b9adc9; font-family: var(--mono); font-size: .68rem; pointer-events: none; }
.bm-ticks { position: relative; height: 1.1rem; margin: .3rem .8rem 0; color: var(--muted); font-family: var(--mono); font-size: .68rem; }
.bm-ticks span { position: absolute; top: 0; white-space: nowrap; }
.bm-ticks span:last-child { transform: translateX(-60%); }
.bm-zero { stroke: rgba(255,255,255,.18); stroke-dasharray: 3 4; }
.bm-key { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: .6rem 0 0; color: var(--muted); font-size: .8rem; }
.bm-key i { display: inline-block; width: 18px; height: 3px; margin-right: .35rem; vertical-align: middle; }
@media (max-width: 760px) { .bm-mics { grid-template-columns: minmax(0, 1fr); } }
