/* Brand signature: scroll-linked ECG trace. Sits above sticky bars (z 50-60)
   and below modal overlays (z 99). Never takes clicks. */
#bpq-sig{position:fixed;top:0;left:0;right:0;height:12px;z-index:98;pointer-events:none;color:#c3a16b}
#bpq-sig svg{position:absolute;top:0;left:0;width:100%;height:12px;display:block;overflow:visible}
#bpq-sig path{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#bpq-sig .bs-t{opacity:.7}
#bpq-sig .bs-p,#bpq-sig .bs-h{display:none}
@media print{#bpq-sig{display:none}}

/* First load: the trace draws itself once, then settles. */
@media (prefers-reduced-motion:no-preference){
  #bpq-sig .bs-t path{stroke-dasharray:1;animation:bs-in 1.6s cubic-bezier(.3,.7,.2,1) .2s both}
  @keyframes bs-in{from{stroke-dashoffset:1;opacity:1}to{stroke-dashoffset:0}}
}

/* Scroll progress: the bright trace and its head follow the page. */
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:scroll()){
    #bpq-sig .bs-t{opacity:.24}
    #bpq-sig .bs-p{display:block;filter:drop-shadow(0 0 2px rgba(195,161,107,.7));
      animation:bs-fill linear both;animation-timeline:scroll(root)}
    #bpq-sig .bs-h{display:block;position:absolute;top:2px;left:0;width:6px;height:6px;border-radius:50%;
      background:currentColor;box-shadow:0 0 8px 2px rgba(195,161,107,.65);
      animation:bs-run linear both,bs-beat 1.1s ease-in-out infinite;
      animation-timeline:scroll(root),auto}
    @keyframes bs-fill{from{clip-path:inset(-4px 100% -4px 0)}to{clip-path:inset(-4px 0 -4px 0)}}
    @keyframes bs-run{from{left:0}to{left:calc(100% - 6px)}}
    @keyframes bs-beat{50%{box-shadow:0 0 12px 4px rgba(195,161,107,.85)}}
  }
}
