/* Story motion keeps the Paper surfaces visible; only content moves. */
.bc-site-header::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
  transform: translateX(-105%);
  animation: bc-current-arrive 1.2s .12s var(--bc-ease, cubic-bezier(.23,1,.32,1)) both;
  pointer-events: none;
}
@keyframes bc-current-arrive {
  0% { opacity: 0; transform: translateX(-105%); }
  18% { opacity: .85; }
  100% { opacity: 0; transform: translateX(105%); }
}

/* Copy, CTA groups and imagery each enter once; headings own their line masks. */
.bc-motion-ready {
  opacity: 0;
  transform: translateY(22px);
}
.bc-motion-ready.bc-motion-visible {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--bc-ease, cubic-bezier(.23,1,.32,1)), transform 1.1s var(--bc-ease, cubic-bezier(.23,1,.32,1));
  transition-delay: var(--bc-reveal-delay, 0ms);
}
.bc-motion-ready.bc-motion-settled { transition: none; }
.bc-motion-row { position: relative; }
.bc-motion-row::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: -20px;
  width: 2px;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s .12s var(--bc-ease, cubic-bezier(.23,1,.32,1));
  pointer-events: none;
}
.bc-motion-row.bc-motion-visible::before { transform: scaleY(1); }

@media (max-width: 767px) {
  .bc-motion-row::before { left: -12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-site-header::before { animation: none; }
  .bc-motion-ready { opacity: 1; transform: none; }
  .bc-motion-ready.bc-motion-visible, .bc-motion-row::before { transition: none; }
  .bc-motion-row::before { transform: scaleY(1); }
}

/* Measured line masks: original inline content is restored after its single entrance. */
main .bc-line-reveal,
main .bc-line-done { animation: none !important; opacity: 1; transform: none !important; }
main .bc-line-reveal { display: block !important; }
main .bc-line-reveal .bc-line-mask,
main .bc-line-reveal .bc-line-inner { font: inherit; letter-spacing: inherit; color: inherit; text-transform: inherit; margin: 0; padding: 0; }
.bc-line-mask { display: block; overflow: clip; overflow-clip-margin: .12em; }
.bc-line-inner { display: block; transform: translateY(0); transition-property: none; }
.bc-line-ready .bc-line-inner { transform: translateY(115%); }
.bc-line-ready.bc-line-visible .bc-line-inner {
  transform: translateY(0);
  transition-property: transform;
  transition-duration: 1.1s;
  transition-timing-function: var(--bc-ease, cubic-bezier(.23,1,.32,1));
}
@media (prefers-reduced-motion: reduce) {
  .bc-line-mask { overflow: visible; }
  .bc-line-ready .bc-line-inner { transform: none; transition: none !important; }
}
