/* The page remains usable if scripting is unavailable. */
.freight-intro{position:fixed;inset:0;z-index:10000;overflow:hidden;background:#082d4b;color:white;font-family:inherit;animation:intro-curtain 8.4s both;pointer-events:auto}.intro-playing{overflow:hidden}.intro-scene{position:absolute;width:100%;height:100%;inset:0}.intro-world{animation:intro-camera 8.4s cubic-bezier(.4,0,.25,1) both}
.intro-container {
  animation: intro-container 8.4s cubic-bezier(.5,0,.5,1) both;
}
.intro-hook {
  animation: intro-hook 8.4s cubic-bezier(.5,0,.5,1) both;
}
.intro-cable {
  transform-origin: 600px 5px;
  animation: intro-cable 8.4s cubic-bezier(.5,0,.5,1) both;
}
.intro-sling {
  transform-origin: 600px 340px;
  animation: intro-slacken 8.4s cubic-bezier(.5,0,.5,1) both;
}
.intro-truck{animation:intro-drive 8.4s cubic-bezier(.5,0,.5,1) both}.intro-caption{position:absolute;z-index:2;top:10%;left:8%;right:8%;animation:intro-caption 8.4s both}.intro-caption span{font-size:.8rem;letter-spacing:.18em;font-weight:700;color:#e0eaf3}.intro-caption strong{display:block;font-size:clamp(1.8rem,4.2vw,3.8rem);line-height:1.12;margin-top:14px;letter-spacing:-.035em}.intro-skip{position:absolute;z-index:5;right:24px;top:24px;background:#082a44b3;color:#fff;border:1px solid #ffffff60;border-radius:30px;padding:10px 20px;font:600 .9rem inherit;cursor:pointer}.intro-skip:hover,.intro-skip:focus-visible{background:white;color:#082a44;outline:3px solid #ff801b;outline-offset:4px}.intro-progress{position:absolute;bottom:0;left:0;width:100%;height:3px;background:#ffffff16}.intro-progress i{display:block;width:100%;height:100%;background:#ff7918;transform-origin:left;animation:intro-progress 8.4s linear both}
@keyframes intro-camera{0%,18%{transform:translateY(160px)}48%,100%{transform:translateY(-120px)}}
@keyframes intro-container {
  0%, 18% { transform: translate(0, 0); }
  51%, 66% { transform: translate(0, 216px); }
  100% { transform: translate(1550px, 216px); }
}
@keyframes intro-hook {
  0%, 18% { transform: translateY(0); }
  51%, 54% { transform: translateY(216px); }
  66%, 100% { transform: translateY(-220px); }
}
@keyframes intro-cable {
  0%, 18% { transform: scaleY(1); }
  51%, 54% { transform: scaleY(1.8); }
  66%, 100% { transform: scaleY(.185185); }
}
@keyframes intro-slacken {
  0%, 54% { transform: scaleY(1); }
  60%, 100% { transform: scaleY(.12); }
}
@keyframes intro-drive{0%,66%{transform:translateX(0)}100%{transform:translateX(1550px)}}
@keyframes intro-curtain{0%,72%{transform:translateX(0)}100%{transform:translateX(100%)}}
@keyframes intro-caption{0%{opacity:0;transform:translateY(12px)}8%,32%{opacity:1;transform:translateY(0)}45%,100%{opacity:0;transform:translateY(-12px)}}
@keyframes intro-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-width:600px){.intro-caption{top:15%;left:7%;}.intro-caption span{font-size:.7rem;letter-spacing:.1em}.intro-skip{top:16px;right:16px}.intro-caption strong{max-width:270px}}
@media(prefers-reduced-motion:reduce){.freight-intro{display:none}.intro-playing{overflow:auto}}

@media (max-aspect-ratio: 1/1) {
  .freight-intro { background: linear-gradient(#062849, #154c72 67%, #082339); }
  .intro-scene > rect { opacity: 0; }
}

/* All five wheels use the same radius and turn with the truck. */
.intro-wheel {
  animation: intro-wheel-turn 8.4s cubic-bezier(.5,0,.5,1) both;
}
@keyframes intro-wheel-turn {
  0%, 66% { transform: rotate(0); }
  100% { transform: rotate(2537deg); }
}

.intro-particle {
  animation: intro-drift var(--particle-duration) ease-out both;
}
@keyframes intro-drift {
  0% { opacity: 0; transform: scale(.5); }
  14% { opacity: var(--particle-opacity); }
  100% {
    opacity: 0;
    transform: translate(var(--particle-drift), var(--particle-rise)) scale(1.8);
  }
}

/* The moving edge reveals the homepage underneath as the truck exits. */
@supports (mask-image: linear-gradient(black, transparent)) {
  .freight-intro {
    mask-image: linear-gradient(to right, transparent 46%, #000 54%);
    mask-size: 220% 100%;
    mask-repeat: no-repeat;
    animation: intro-reveal 8.4s cubic-bezier(.45,0,.2,1) both;
  }
  @keyframes intro-reveal {
    0%, 70% { mask-position: right center; }
    100% { mask-position: left center; }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .intro-playing main {
    animation: intro-page-settle 8.4s cubic-bezier(.45,0,.2,1) both;
  }
}
@keyframes intro-page-settle {
  0%, 70% { translate: -24px 0; }
  100% { translate: 0 0; }
}

/* A composited fade is lighter on phones than animating a fullscreen mask. */
@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
  .freight-intro {
    mask-image: none;
    animation: intro-mobile-fade 8.4s both;
  }
  .intro-playing main { animation: none; }
}
@keyframes intro-mobile-fade {
  0%, 86% { opacity: 1; }
  100% { opacity: 0; }
}
