.video-banner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(370px, 56svh, 500px);
  isolation: isolate;
  overflow: hidden;
  background: #182634;
  --banner-cycle: 19s;
}

.video-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0b1725ed, #0b1725b3 44%, #0b172500 92%);
}

.video-banner-scenes {
  position: absolute;
  inset: 0;
  z-index: -2;
  isolation: isolate;
  overflow: hidden;
  background: #182634;
}

.video-banner-bridge, .video-banner-port, .video-banner-skyline, .video-banner-truck {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
}
.video-banner-truck { z-index: -5; opacity: 1; }
.video-banner-bridge { z-index: -4; }
.video-banner-port { z-index: -3; }
.video-banner-skyline { z-index: -2; }
.video-banner-bridge { filter: saturate(.88) brightness(.97); }
.video-banner-port { filter: saturate(.9) brightness(1.05); }
.video-banner-skyline { filter: saturate(.88) brightness(1.04); }
.video-banner-truck img {
  position: absolute;
  inset: 0 0 0 auto;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: right center;
  mask-image: linear-gradient(to right, transparent 0%, #000 25%);
}
@media (prefers-reduced-motion: no-preference) {
  .video-banner-truck img { animation: banner-pan 24s ease-in-out infinite alternate; }
  .video-banner-bridge {
    background-image: url("fraser-river-preview.webp");
    animation: banner-bridge var(--banner-cycle) infinite, banner-pan 18s ease-in-out infinite alternate;
  }
  .video-banner-port {
    background-image: url("terminal-scene-preview.webp");
    animation: banner-port var(--banner-cycle) infinite, banner-pan 20s ease-in-out infinite alternate-reverse;
  }
  .video-banner-skyline {
    background-image: url("vancouver-false-creek-preview.jpg");
    animation: banner-skyline var(--banner-cycle) infinite, banner-pan 22s ease-in-out infinite alternate;
  }
  .video-banner:focus-within :is(.video-banner-truck img, .video-banner-bridge, .video-banner-port, .video-banner-skyline) { animation-play-state: paused; }
}

@keyframes banner-pan {
  from { transform: scale(1.025) translateX(-.8%); }
  to { transform: scale(1.06) translateX(.8%); }
}
@keyframes banner-bridge {
  0%, 26.32%, 64%, 100% { opacity: 0; }
  33.16%, 57% { opacity: 1; }
}
@keyframes banner-port {
  0%, 49.47%, 87%, 100% { opacity: 0; }
  56.32%, 80% { opacity: 1; }
}
@keyframes banner-skyline {
  0%, 73.16%, 100% { opacity: 0; }
  80%, 93.16% { opacity: 1; }
}
.video-banner-inner { padding-block: 24px 44px; }
.video-banner .hero-inner { max-width: 650px; color: #fff; }
.video-banner h1 { font-size: clamp(2.4rem, min(4.25vw, 8svh), 3.8rem); margin-block: 12px; }
.video-banner .hero-actions { margin-top: 14px; }
.video-banner .hero-inner p, .video-banner .text-link, .video-banner .hero-support a { color: #fff; }

@media (max-width: 700px) {
  .video-banner { min-height: 0; }
  .video-banner::after { display: none; }
  .video-banner-scenes {
    position: relative;
    z-index: auto;
    height: clamp(150px, 50vw, 290px);
  }
  .video-banner-truck img {
    width: 100%;
    object-fit: cover;
    object-position: center 64%;
    mask-image: none;
  }
  .video-banner-inner { padding-block: 16px 22px; }
  .video-banner h1 { font-size: clamp(2.1rem, 7.5vw, 2.8rem); }
}
