/* Palette wash used by the portfolio/music 3D page transition. */

.page-flip-wash {
  position: absolute;
  inset: 0;
  z-index: 10;
  opacity: 0;
  background: var(--page-flip-wash-color, #ff5e5b);
  pointer-events: none;
  will-change: opacity;
}

/*
 * Cross-page flips carry a low-opacity color wash across navigation. The
 * destination begins at the same opacity and only fades out, avoiding a solid
 * color hit or a flash of the outgoing document at the handoff.
 */
html.johnbaso-arriving body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: block;
  background: var(--johnbaso-arrival-color, #000000);
  opacity: .32;
  pointer-events: none;
  will-change: opacity;
}

html.johnbaso-arriving.johnbaso-arrival-fade body::before {
  opacity: 0;
  transition: opacity 480ms cubic-bezier(.4, 0, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  html.johnbaso-arriving body::before,
  .page-flip-wash {
    display: none !important;
  }
}
