/* Circuit paths and musical divisions share one quiet, precise visual system. */
:root {
  --bc-bg: #080c11;
  --bc-panel: #0d151d;
  --bc-cyan: #38e6f5;
  --bc-magenta: #f34bdd;
  --bc-border: #28414b;
  --bc-muted: #a5b6c7;
}
.bc-site { background: var(--bc-bg); }
.bc-site #main { position: relative; }
.home #main { isolation: isolate; }
.bc-site #main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 820px;
  background: url("circuit-traces.svg") center top / 1440px 820px no-repeat;
  opacity: .32;
  pointer-events: none;
  z-index: -1;
}
.home #main::before { opacity: .9; }
.bc-header { background: #080c11f5; border-bottom-color: #1f5362; }
.bc-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, #38e6f5aa, #38e6f522 40%, #f34bdd44 78%, #38e6f599);
  pointer-events: none;
}
.bc-header-inner { height: 86px; }
.bc-nav>a[aria-current]::after { box-shadow: 0 0 9px #38e6f570; }
.bc-button {
  background: linear-gradient(135deg, #54edfa, #0dcadd);
  border-color: #5fefff;
  border-radius: 5px;
  box-shadow: 0 0 18px #16dff51c, inset 0 1px #d0ffff77;
}
.bc-button:hover { background: #94f5ff; box-shadow: 0 0 23px #22e3f53a; }
.bc-button-ghost { background: #081219b8; color: var(--bc-text); border-color: #5a8490; box-shadow: none; }
.bc-button-ghost:hover { background: #112b35; }
.bc-eyebrow { color: var(--bc-cyan); letter-spacing: .18em; }
.bc-hero {
  grid-template-columns: 1fr 1.1fr;
  min-height: 515px;
  padding-top: 42px;
  padding-bottom: 34px;
  gap: 10px;
}
.bc-hero-copy { padding-bottom: 10px; }
.bc-hero .bc-eyebrow { margin-bottom: 20px; }
.bc-hero h1 {
  font-size: clamp(42px, 4.1vw, 62px);
  font-weight: 650;
  line-height: 1.09;
  letter-spacing: -.055em;
  margin-bottom: 13px;
}
.bc-hero-tagline { font-size: clamp(23px, 2.3vw, 34px); color: #f1f6fa; font-weight: 400; line-height: 1.3; letter-spacing: -.035em; margin-bottom: 23px; }
.bc-hero-description { font-size: 15px; line-height: 1.75; max-width: 495px; margin-bottom: 26px; color: #b9c8d4; }
.bc-hero-footnote { color: #8597a7; font-size: 9px; margin-top: 25px; }
.bc-hero-art { min-height: 420px; padding: 13px 0 24px; }
.bc-hero-art::before {
  inset: 5% -1% 8%;
  background: radial-gradient(ellipse at 27% 45%, #09bcdb15, transparent 51%), radial-gradient(ellipse at 77% 45%, #ef1eca12, transparent 53%);
}
.bc-hero-logo { width: 112%; max-width: 112%; }
.bc-capsule-ruler {
  position: absolute;
  top: -3px;
  left: 7%;
  right: 5%;
  display: flex;
  justify-content: space-between;
  padding-bottom: 15px;
  color: #718999;
  font: 9px Consolas, monospace;
  letter-spacing: .06em;
  border-bottom: 1px solid #38e6f527;
  background: repeating-linear-gradient(90deg, #38e6f53b 0 1px, transparent 1px 3.125%) bottom / 100% 5px no-repeat;
}
.bc-capsule-connector { position: absolute; bottom: -29px; left: 20%; right: 16%; height: 47px; display: flex; justify-content: space-between; z-index: -1; }
.bc-capsule-connector i { width: 1px; height: 100%; background: linear-gradient(#38e6f577, #38e6f50a); position: relative; }
.bc-capsule-connector i:nth-child(n+3) { background: linear-gradient(#f34bdd77, #f34bdd0a); }
.bc-capsule-connector i::before { content: ""; position: absolute; top: -3px; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--bc-cyan); box-shadow: 0 0 8px #38e6f555; }
.bc-capsule-connector i:nth-child(n+3)::before { background: var(--bc-magenta); box-shadow: 0 0 8px #f34bdd55; }

/* The ruler is the instrument's reference line; all rows share its endpoints. */
#rhythm-lab { padding-top: 0; padding-bottom: 73px; scroll-margin-top: 110px; }
.bc-lab { position: relative; border-radius: 3px; border-color: #45606b; background: linear-gradient(125deg, #0c141df2, #080f16fa 64%); box-shadow: 0 0 0 5px #07111855, inset 0 1px #7db3c022, 0 20px 60px #0003; }
.bc-lab::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, #77c4d744, #38e6f544 55%, #f34bdd44); pointer-events: none; }
.bc-instrument-heading { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: end; padding: 28px 32px 19px; }
.bc-instrument-heading .bc-eyebrow { margin-bottom: 11px; font-size: 9px; }
.bc-instrument-heading h2 { font-size: clamp(29px, 3vw, 43px); line-height: 1.15; font-weight: 630; margin: 0; letter-spacing: -.05em; }
.bc-mobile-break { display: none; }
.bc-instrument-heading>p { font-size: 12px; line-height: 1.7; margin: 0; max-width: 340px; justify-self: end; }
.bc-demo-notice strong { display: block; color: var(--bc-cyan); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.bc-lab-toolbar { flex-wrap: wrap; padding: 18px 32px; border-bottom-color: #243b45; border-top: 1px solid #1d303a; gap: 32px; background: #0a121b85; justify-content: flex-start; }
.bc-division-control { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #dceaf1; }
.bc-division-control .bc-segmented { margin: 0; gap: 7px; }
.bc-division-control .bc-segmented button { min-width: 38px; min-height: 36px; padding: 6px 12px; border: 1px solid #38505b; border-radius: 4px; background: #0a121a; color: #c1d0db; }
.bc-division-control .bc-segmented button[aria-pressed="true"] { color: #efffff; background: #0c4654; border-color: var(--bc-cyan); box-shadow: 0 0 12px #38e6f531, inset 0 0 10px #38e6f515; }
.bc-segment-control,.bc-bpm-control { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #dceaf1; }
.bc-segment-control select,.bc-bpm-control input { width: 62px; min-height: 36px; padding: 6px 8px; border: 1px solid #38505b; border-radius: 4px; background: #0a121a; color: #efffff; font: inherit; color-scheme: dark; }
.bc-bpm-control input[type="range"] { width: 120px; min-height: 22px; padding: 0; border: 0; accent-color: var(--bc-magenta); cursor: pointer; }
.bc-segment-control select:focus-visible,.bc-bpm-control input:focus-visible { outline: 2px solid var(--bc-cyan); outline-offset: 2px; }
.bc-highlight-control { width: 260px; max-width: 100%; }
.bc-highlight-control label { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #dceaf1; }
.bc-highlight-control output { color: #a9bccb; font-size: 11px; }
.bc-highlight-control input { display: block; width: 100%; accent-color: var(--bc-magenta); height: 22px; margin: 5px 0 0; }
.bc-reset-control { border: 0; background: none; color: #a9bccb; font-size: 12px; padding: 8px 0; margin-left: auto; min-height: 38px; }
.bc-reset-control:hover { color: var(--bc-cyan); }
.bc-reset-control span { margin-left: 10px; }
.bc-play { min-height: 39px; min-width: 99px; padding: 9px 17px; font-size: 12px; border-color: #486470; background: #0a1922; border-radius: 5px; }
.bc-play svg { color: var(--bc-cyan); filter: drop-shadow(0 0 4px #38e6f577); }
.bc-play[aria-pressed="true"] { box-shadow: 0 0 18px #38e6f529; background: #11303b; }
.bc-lab-content { display: block; }
.bc-grid-area { padding: 25px 32px 23px; }
.bc-grid-instrument { position: relative; --bc-label-space: 49px; }
.bc-ruler { margin-left: var(--bc-label-space); position: relative; display: block; height: 43px; font-size: 11px; color: #d8e4ed; padding: 0; margin-bottom: 20px; border-bottom: 1px solid #698492; background: repeating-linear-gradient(90deg, #5d7a89 0 1px, transparent 1px 1.5625%) left bottom / 100% 7px no-repeat; }
.bc-ruler span { position: absolute; top: 0; }
.bc-ruler span:first-child { left: 0; }
.bc-ruler span:nth-child(2) { left: 25%; transform: translateX(-50%); }
.bc-ruler span:nth-child(3) { left: 50%; transform: translateX(-50%); }
.bc-ruler span:nth-child(4) { left: 75%; transform: translateX(-50%); }
.bc-ruler span:last-child { right: 0; }
.bc-ruler span::after { content: ""; position: absolute; height: 18px; width: 1px; background: #bceef6; top: 27px; left: 50%; box-shadow: 0 0 7px #38e6f555; }
.bc-ruler span:first-child::after { left: 0; }
.bc-ruler span:last-child::after { left: auto; right: 0; background: #f3b4e9; box-shadow: 0 0 7px #f34bdd88; }
.bc-ruler::after { content: ""; position: absolute; bottom: -3px; left: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--bc-cyan); box-shadow: 0 0 9px var(--bc-cyan); }
.bc-rhythm-grid { gap: 12px; position: relative; }
.bc-rhythm-grid::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: linear-gradient(var(--bc-cyan), #38e6f53a); }
.bc-rhythm-row { gap: 10px; position: relative; }
.bc-row-label { width: 39px; flex: 0 0 39px; padding-left: 9px; font-size: 10px; color: #a6bdca; }
.bc-row-label::before { content: ""; position: absolute; left: -2px; top: calc(50% - 2px); width: 5px; height: 5px; background: #4ed7e8; box-shadow: 0 0 7px #38e6f55a; border-radius: 50%; }
.bc-rhythm-row[data-sound-source="true"] .bc-row-label { color: #e5fdff; font-weight: 700; }
.bc-rhythm-row[data-sound-source="true"] .bc-row-label::after { content: "➜"; position: absolute; left: 28px; top: 50%; transform: translateY(-50%); color: var(--bc-cyan); font-size: 15px; line-height: 1; text-shadow: 0 0 8px var(--bc-cyan); }
.bc-rhythm-cells { gap: 4px; min-width: 0; }
.bc-cell { height: 32px; border-radius: 2px; background: linear-gradient(#0a1420, #0c1520); border-color: #345465; min-width: 0; transition: background .16s; }
.bc-cell.active { background: linear-gradient(120deg, #117e96, #094055); border-color: #47e7fa; box-shadow: inset 0 0 12px #42dfff30, 0 0 8px #31dff530; }
.bc-rhythm-row:nth-child(even) .bc-cell { border-color: #604361; }
.bc-rhythm-row:nth-child(even) .bc-cell.active { background: linear-gradient(120deg, #931981, #542055); border-color: #f28be3; box-shadow: inset 0 0 12px #ff53dc30, 0 0 8px #f34bdd24; }
.bc-cell.playing { filter: none; outline: 1px solid #efffff; outline-offset: -1px; box-shadow: inset 0 0 10px #ddfaff77; }
.bc-playhead-track { display: none; position: absolute; top: 22px; bottom: -7px; left: var(--bc-label-space); right: 0; pointer-events: none; z-index: 3; }
.bc-playhead { position: absolute; top: 0; bottom: 0; left: var(--bc-playhead, 0%); width: 1px; background: #ddfcff; box-shadow: 0 0 6px #3cdcf4, 0 0 13px #3cdcf499; }
.bc-playhead::before { content: ""; position: absolute; top: -3px; left: -4px; width: 9px; height: 10px; clip-path: polygon(0 0, 100% 0, 50% 100%); background: #e0fdff; }
.bc-lab[data-playing="true"] .bc-playhead-track { display: block; }
.bc-grid-legend { font-size: 11px; margin-left: 49px; color: #a5b6c7; }
.bc-grid-legend p { font-size: 11px; color: #a5b6c7; }
.bc-lab-caption { padding: 16px 32px; color: #a5b6c7; font-size: 11px; border-top-color: #263b45; }

/* Connections continue into the content, without lighting every surface. */
.bc-features { padding-top: 0; }
.bc-feature-grid { border-top: 1px solid #327d8e; border-bottom-color: #203541; }
.bc-feature-grid article { padding-top: 40px; }
.bc-feature-grid article::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #0a1920; border: 1px solid var(--bc-cyan); box-shadow: 0 0 0 4px #38e6f510, 0 0 13px #38e6f542; }
.bc-feature-grid article+article { border-left-color: #213641; }
.bc-feature-grid article:nth-child(2)::before { border-color: var(--bc-magenta); box-shadow: 0 0 0 4px #f34bdd10, 0 0 13px #f34bdd42; }
.bc-mini-grid i { box-shadow: 0 0 7px #38e6f519; }
.bc-learn-banner { background: radial-gradient(ellipse at 100% 0, #b72b9d0c, transparent 60%), linear-gradient(115deg, #0f1c25, #0b141d); border-color: #304e5a; border-radius: 4px; }
.bc-learning-map>div { border-color: #33515c; }
.bc-learning-map>div>span { color: var(--bc-cyan); }
.bc-feedback-strip { border-color: #294450; }
.bc-feedback-icon { border-color: #446875; background: #0b1c25; box-shadow: inset 0 0 20px #38e6f50a; }
.bc-page-hero { position: relative; border-bottom-color: #31515d; }
.bc-page-hero::after { content: ""; position: absolute; bottom: -6px; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, #38e6f542 0 1px, transparent 1px 12px); pointer-events: none; }
.bc-about-art { position: relative; background: radial-gradient(ellipse, #38e6f508, transparent 68%); }
.bc-brand-story { max-width: 860px; padding: 12px 0 35px 26px; border-left: 1px solid #377c8b; margin-bottom: 48px; position: relative; }
.bc-brand-story::before { content: ""; position: absolute; top: 10px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--bc-magenta); box-shadow: 0 0 11px #f34bdd55; }
.bc-brand-story h2 { font-size: 32px; }
.bc-brand-story p:last-child { margin-bottom: 0; }
.bc-method-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 701px) and (max-width: 1000px) {
  .bc-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-method-grid article:nth-child(3) { border-left: 0; padding-left: 0; }
  .bc-method-grid article:nth-child(n+3) { border-top: 1px solid #213641; }
}
.bc-callout,.bc-support-aside { border-color: #2c4753; border-radius: 4px; background: #0d1821; }
.bc-faq-item { border-color: #29424f; }
.bc-faq-item[open] summary { color: var(--bc-cyan); }
.bc-footer { background: #090f16; border-top: 1px solid #31505b; position: relative; }
.bc-footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; color: #bac9d8; }
.bc-footer-legal a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #4ae1f255; }
@media (max-width: 700px) { .bc-footer-legal { width: 100%; gap: 8px 20px; } }
.bc-footer::before { content: ""; position: absolute; top: -1px; left: 4%; right: 4%; height: 1px; background: linear-gradient(90deg, #38e6f58a, transparent 40%, #f34bdd77 77%, transparent); pointer-events: none; }

@media (max-width: 1120px) {
  .bc-hero { min-height: 470px; padding-top: 38px; gap: 16px; }
  .bc-hero-art { min-height: 350px; }
  .bc-hero h1 { font-size: 43px; }
  .bc-hero-tagline { font-size: 26px; }
  .bc-hero-description { font-size: 14px; }
  .bc-hero-footnote { gap: 8px; font-size: 8px; }
  .bc-instrument-heading { gap: 22px; grid-template-columns: 1.4fr 1fr; }
  .bc-instrument-heading h2 { font-size: 32px; }
  .bc-lab-toolbar { gap: 24px; }
}
@media (max-width: 920px) {
  .bc-header-inner { height: 79px; }
  .bc-nav { background: #09141dfc; border-color: #345966; }
  .bc-hero { grid-template-columns: 1fr 1fr; min-height: 465px; }
  .bc-hero h1 { font-size: 40px; }
  .bc-hero-tagline { font-size: 23px; }
  .bc-hero-art { min-height: 315px; }
  .bc-hero-footnote { flex-wrap: wrap; line-height: 1.6; }
  .bc-capsule-ruler { font-size: 8px; top: 0; }
  .bc-hero .bc-actions { gap: 10px; }
  .bc-hero .bc-button { padding: 11px 16px; font-size: 12px; }
  .bc-highlight-control { width: 210px; }
  .bc-lab-toolbar { gap: 18px; padding-inline: 23px; }
  .bc-reset-control { font-size: 11px; }
  .bc-instrument-heading { padding-inline: 23px; }
  .bc-grid-area { padding-inline: 23px; }
}
@media (max-width: 700px) {
  .home #main::before { opacity: .4; background-size: 1100px auto; background-position: 50% 70px; height: 700px; }
  .bc-site:not(.home) #main::before { opacity: .15; }
  .bc-header-inner { height: 73px; }
  .bc-hero { grid-template-columns: 1fr; gap: 19px; min-height: 0; padding-top: 38px; padding-bottom: 22px; }
  .bc-hero-copy { padding: 0; }
  .bc-hero h1 { font-size: clamp(34px, 8.7vw, 55px); letter-spacing: -.05em; margin-bottom: 12px; }
  .bc-hero .bc-eyebrow { font-size: 9px; margin-bottom: 16px; letter-spacing: .13em; }
  .bc-hero-tagline { font-size: clamp(22px, 5.3vw, 30px); max-width: 470px; margin-bottom: 18px; }
  .bc-hero-description { font-size: 14px; margin-bottom: 22px; max-width: 460px; }
  .bc-hero .bc-button { min-height: 45px; }
  .bc-hero-footnote { font-size: 8px; margin-top: 19px; gap: 9px; }
  .bc-hero-art { min-height: 0; padding: 29px 0 15px; margin: 0; }
  .bc-hero-logo { width: 100%; max-width: 100%; }
  .bc-capsule-ruler { top: 0; left: 3%; right: 3%; font-size: 9px; }
  .bc-capsule-connector { bottom: -20px; height: 27px; }
  #rhythm-lab { padding-bottom: 49px; scroll-margin-top: 88px; }
  .bc-instrument-heading { display: block; padding: 24px 18px 18px; }
  .bc-instrument-heading .bc-eyebrow { font-size: 9px; }
  .bc-instrument-heading h2 { font-size: 30px; margin-bottom: 12px; }
  .bc-instrument-heading>p { font-size: 12px; max-width: 440px; }
  .bc-lab-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 17px 18px; gap: 15px 18px; }
  .bc-division-control { grid-area: 1 / 1; align-items: flex-start; gap: 7px; flex-direction: column; }
  .bc-division-control .bc-segmented button { min-width: 37px; min-height: 40px; }
  .bc-segment-control { grid-area: 2 / 1; }
  .bc-bpm-control { grid-area: 3 / 1 / 4 / -1; }
  .bc-bpm-control input[type="range"] { flex: 1; min-width: 75px; max-width: 260px; }
  .bc-highlight-control { grid-area: 4 / 1 / 5 / -1; width: 100%; }
  .bc-highlight-control input { height: 27px; }
  .bc-reset-control { grid-area: 5 / 1; width: fit-content; margin: 0; padding: 0; min-height: 38px; font-size: 12px; }
  .bc-play { grid-area: 1 / 2; align-self: end; min-width: 88px; min-height: 42px; padding: 8px 12px; }
  .bc-grid-area { padding: 22px 18px 20px; }
  .bc-grid-instrument { --bc-label-space: 31px; }
  .bc-ruler { font-size: 10px; height: 39px; margin-bottom: 17px; }
  .bc-ruler span::after { top: 22px; height: 16px; }
  .bc-row-label { width: 25px; flex-basis: 25px; font-size: 9px; padding-left: 7px; }
  .bc-rhythm-row[data-sound-source="true"] .bc-row-label::after { left: 17px; font-size: 12px; }
  .bc-rhythm-row { gap: 6px; }
  .bc-rhythm-cells { gap: 1px; }
  .bc-rhythm-grid { gap: 10px; }
  .bc-cell { height: 30px; border-width: 1px; border-radius: 1px; }
  .bc-grid-legend { margin-left: 31px; gap: 10px; font-size: 10px; margin-top: 17px; }
  .bc-grid-legend p { display: block; flex-basis: 100%; margin: 0; font-size: 10px; }
  .bc-lab-caption { padding: 15px 18px; font-size: 11px; line-height: 1.6; }
  .bc-lab-caption a { margin-top: 7px; }
  .bc-feature-grid { border-top: 0; }
  .bc-feature-grid article,.bc-feature-grid article+article { padding: 28px 0 28px 22px; border-left: 1px solid #315562; }
  .bc-feature-grid article::before { top: 36px; left: -5px; }
  .bc-brand-story { padding-left: 20px; }
  .bc-brand-story h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-lab[data-playing="true"] .bc-playhead-track { display: none; }
  .bc-cell,.bc-button { transition: none; }
  .bc-button:hover { transform: none; }
}
