.entrance-veil {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .is-entering .entrance-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: hidden;
    pointer-events: none;
    animation: entrance-finish 0s 2.25s forwards;
  }

  .is-entering .entrance-veil > i {
    --exit-y: -100%;
    background-color: var(--entrance-colour, #111);
    animation: entrance-column .75s ease-in-out 1.5s both;
  }

  .is-entering .entrance-veil > i:nth-child(even) {
    --exit-y: 100%;
  }

  .is-entering .masthead {
    animation: entrance-header .5s ease-in-out .5s both;
  }

  .is-entering .entrance-mask {
    overflow: clip;
  }

  .is-entering .entrance-mask > :is(#hero-heading, .hero-description, .hero-actions) {
    animation: entrance-content 1s ease-in-out .5s both;
  }

  @keyframes entrance-header {
    from { transform: translateY(-100%); }
    to { transform: none; }
  }

  @keyframes entrance-content {
    from { transform: translateY(100%); }
    to { transform: none; }
  }

  @keyframes entrance-column {
    from { transform: none; }
    to { transform: translateY(var(--exit-y)); }
  }

  @keyframes entrance-finish {
    to { visibility: hidden; }
  }
}
