/* Hub → section page-swap veil (no inline styles; CSP-friendly). */
html.jb-handoff::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--jb-handoff-top, 4.55rem);
  z-index: 100000;
  pointer-events: none;
  animation: jb-handoff-out 0.55s ease 0.04s forwards;
}

html.jb-handoff .site-header {
  position: relative;
  z-index: 100001;
}

html[data-handoff="me"].jb-handoff,
html[data-handoff="me"].jb-handoff::before {
  background: #174c43;
}

html[data-handoff="jmbnet"].jb-handoff,
html[data-handoff="jmbnet"].jb-handoff::before {
  background: #0b1320;
}

html[data-handoff="research"].jb-handoff,
html[data-handoff="research"].jb-handoff::before {
  background: #0c1214;
}

@keyframes jb-handoff-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.jb-handoff::before {
    animation: none;
    opacity: 0;
    visibility: hidden;
  }
}
