/* The home hero's container scene (hero-container.js). */

/* Behind the words, across the whole hero: the camera's frame is cut
   off-centre so the box hangs to the right of the copy, and the stack runs out
   under it at the foot. Clicks go through to the page. */
.hero-yard {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-yard canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .9s ease-out;
}

.hero-yard.is-ready canvas { opacity: 1; }

/* A phone: the box on its hook (no stack: hero-container.js), above the
   words and running to the screen's edges and up into the hero's 54px top
   padding. Above rather than behind them: the copy sinks as the page scrolls
   (data-parallax), and the box is black. */
@media (max-width: 800px) {
  .hero-yard {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    height: clamp(280px, 40vh, 360px);
    margin: -42px -20px 6px;
  }
  .hero-copy { margin-top: 0; }
}

/* The hero's "24/7" now stands over the scene's stack, so it is set on a card
   of the ground with the site's red rule, as the scene labels once were,
   rather than straight onto a container's side. */
.hero-yard ~ .hero-bottom .hero-counter {
  padding: 12px 16px 12px 14px;
  border-left: 2px solid var(--red);
  background: var(--paper);
}
.dark .hero-yard ~ .hero-bottom .hero-counter { background: #161617; }
