/* AxlDog: Axl, a ghosted boxer, walks in and sits beside the name.
   JS sizes and places both layers from the title, so they stay in step
   with it at every width. */

/* a zero-size mark at the end of HOLDINGS: its left is where the word ends,
   its bottom is the baseline he sits on */
.dog-mark {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: baseline;
}

.axl-dog,
.axl-dog-clip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  pointer-events: none;
  transform-origin: 0 0;
}

/* The clip feeds the canvas and stays out of sight. Without WebGL it shows
   as it is, screen-blended so its black drops away, coming up out of the
   dark on the right as he walks in. */
.axl-dog-clip {
  opacity: 0;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 70%, transparent 97%);
  mask-image: linear-gradient(to right, #000 0, #000 70%, transparent 97%);
  transition: opacity 1.4s ease;
}

.axl-dog-clip.is-plain {
  opacity: .8;
}

/* he leaves with the rest of the hero as the page scrolls */
html.has-motion .stage .axl-dog {
  opacity: calc(1 - var(--hero-p, 0));
}

html.has-motion .stage .axl-dog-clip.is-plain {
  opacity: calc(.8 * (1 - var(--hero-p, 0)));
}

@media (prefers-reduced-motion: reduce) {
  .axl-dog-clip { transition: none; }
}
