/* The hero: one orchestrated moment. The rig draws in, the load drops onto
   the deck, chains go over the coils, the tarp goes over the lumber, then the
   road starts moving under it. Everything after that is still. With reduced
   motion the loaded, chained rig is simply shown. */
/* The copy sits over the sky and the mountains; the rig keeps the bottom of the
   hero clear of text. */
.hero { --stage-h: clamp(240px, 30vw, 440px); position: relative; overflow: hidden; max-width: none;
  min-height: max(600px, calc(100svh - 66px)); padding: clamp(32px, 5vw, 72px) var(--gutter) calc(var(--stage-h) * 0.56); }
.hero-copy { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; }
.hero-copy > * { max-width: 980px; }
.hero h1 { font-size: clamp(46px, 6.6vw, 92px); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--slate-2); }
.lede b { font-weight: 700; color: var(--slate); font-variant-numeric: tabular-nums; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.stage { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; }
#rig { width: 100%; height: var(--stage-h); }

.ridge.far path { fill: #C7CFD3; }
.ridge.near path { fill: #B3BEC3; }
.snow path { fill: var(--white); }
.road { fill: var(--slate); }
.lane-dash { stroke: #F2C94C; stroke-width: 4; stroke-dasharray: 40 36; }

.frame { fill: var(--slate-2); stroke: var(--slate); stroke-width: 2; }
.tape-edge { stroke: var(--red); stroke-width: 5; stroke-dasharray: 22 22; }
.wheel circle { fill: #1B2228; }
.wheel .hub { fill: #9AA6AD; }
.cab { fill: var(--red); stroke: var(--red-dark); stroke-width: 2; }
.glass { fill: #CFE6E8; }
.stack { fill: #9AA6AD; }
.coil circle { fill: #8E9AA1; stroke: #6B777E; stroke-width: 3; }
.coil .eye { fill: var(--steel); }
.lumber rect { fill: #D7B07A; stroke: #A8834F; stroke-width: 2; }
.lumber path { stroke: #A8834F; stroke-width: 2; }
.chains path { fill: none; stroke: #F2C94C; stroke-width: 4; stroke-dasharray: 6 4; }
.tarp { fill: var(--slate); stroke: #1B2228; stroke-width: 2; }

@media (prefers-reduced-motion: no-preference) {
  .js .trailer, .js .tractor { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
  .js .tractor { animation-delay: .15s; }
  .js .coil, .js .lumber { animation: drop .6s cubic-bezier(.3, 1.4, .5, 1) both; }
  .js .c1 { animation-delay: .9s; } .js .c2 { animation-delay: 1.05s; } .js .c3 { animation-delay: 1.2s; } .js .lumber { animation-delay: 1.4s; }
  .js .chains path { stroke-dashoffset: 0; animation: fade .35s ease both; }
  .js .chains path:nth-child(1) { animation-delay: 2.0s; } .js .chains path:nth-child(2) { animation-delay: 2.15s; }
  .js .chains path:nth-child(3) { animation-delay: 2.3s; } .js .chains path:nth-child(4) { animation-delay: 2.45s; }
  .js .chains path:nth-child(5) { animation-delay: 2.55s; } .js .chains path:nth-child(6) { animation-delay: 2.65s; }
  .js .tarp { transform-origin: 675px 330px; animation: tarp .7s cubic-bezier(.2, .8, .2, 1) 2.9s both; }
  /* Rolling: the road and the far hills move, the rig stays in frame. */
  .js .lane-dash { animation: road 1.1s linear 3.6s infinite; }
  .js .ridge.near { animation: drift 60s linear 3.6s infinite; }
  .js .ridge.far { animation: drift 140s linear 3.6s infinite; }
  .js .wheel { transform-box: fill-box; transform-origin: center; animation: spin 1.1s linear 3.6s infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-160px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tarp { from { opacity: 0; transform: scaleY(0.05); } to { opacity: 1; transform: none; } }
@keyframes road { to { stroke-dashoffset: 76; } }
@keyframes drift { from { transform: translateX(0); } 50% { transform: translateX(-40px); } to { transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }



@media (max-width: 640px) {
  .hero { min-height: 0; padding-bottom: calc(var(--stage-h) * 0.9); }
}
