/* Home hero: moving reel of real fleet photos (Ed and Katie asked for motion, 4 Nov 2026).
   Built from round 2's option A. Frames stand in until Katie's wagon clips are chosen;
   a muted looping video can replace .hero-reel__media later with no other change.
   Every frame keeps the whole machine in shot: on desktop it sits right of the copy panel,
   on phones the photo sits above the copy, so nothing is hidden behind text. */
.hero-reel { position: relative; background: var(--jpl-color-navy); overflow: hidden; padding-block: 0; min-height: min(72vh, 640px); display: flex; align-items: center; }
.hero-reel__media { position: absolute; inset: 0; }
.hero-reel__frame, .hero-reel__frame img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-reel__frame img { object-fit: cover; object-position: 68% 50%; }
.hero-reel__frame { opacity: 0; animation: heroReel 24s linear infinite backwards; will-change: opacity, transform; }
.hero-reel__frame:nth-of-type(1) { animation-delay: 0s; }
.hero-reel__frame:nth-of-type(2) { animation-delay: 6s; }
.hero-reel__frame:nth-of-type(3) { animation-delay: 12s; }
.hero-reel__frame:nth-of-type(4) { animation-delay: 18s; }
/* 6 s per photo: each fades in as the one before fades out, with a slow push-in. */
@keyframes heroReel {
  0%   { opacity: 0; transform: scale(1); }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  30%  { opacity: 0; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.05); }
}
.hero-reel.is-paused .hero-reel__frame { animation-play-state: paused; }
/* Katie's footage of the wagons leaving the yard plays over the photo reel; the photos stay underneath as the fallback. */
.hero-reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: 1; background: var(--jpl-color-navy); }
.hero-reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(10,34,64,.94) 0%, rgba(10,34,64,.80) 30%, rgba(10,34,64,.25) 48%, rgba(10,34,64,0) 60%); }
.hero-reel .wrap { position: relative; z-index: 2; width: 100%; padding-block: var(--jpl-space-8); color: #fff; }
.hero-reel__copy { max-width: 34rem; }
.hero-reel h1 { color: #fff; margin-top: var(--jpl-space-3); font-size: clamp(36px, 4.6vw, 60px); max-width: 14ch; }
.hero-reel p.lede { color: #fff; margin-top: var(--jpl-space-3); max-width: 42ch; font-size: clamp(15px, 1.1vw, 17px); font-weight: 400; line-height: 1.5; }
.hero-reel__ctas { display: inline-grid; grid-template-columns: auto auto; gap: var(--jpl-space-4); margin-top: var(--jpl-space-5); }
/* Open a hire account sits under the two main buttons, the width of both (Jess, 18 Nov 2026) */
.hero-reel__ctas .btn { justify-content: center; }
.hero-reel__ctas .hero-reel__account { grid-column: 1 / -1; }
/* Option C (Jess picks, 18 Nov 2026): Jackson Blue for the quote, white for browsing, outline for the account */
.hero-reel__ctas .hero-reel__quote { background: var(--jpl-color-brand); color: #fff; border-color: var(--jpl-color-tint); }
.hero-reel__ctas .hero-reel__quote:hover { background: #fff; color: var(--jpl-color-navy); border-color: #fff; }
@media (max-width: 479px) { .hero-reel__ctas { display: grid; grid-template-columns: 1fr; } }
.hero-reel__pause { position: absolute; z-index: 3; right: var(--jpl-space-4); bottom: var(--jpl-space-4); background: rgba(10,34,64,.72); color: #fff; border: 1px solid rgba(255,255,255,.5); font: inherit; font-size: 13px; padding: 6px 12px; cursor: pointer; }
.hero-reel__pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 759px) {
  .hero-reel { display: block; min-height: 0; }
  .hero-reel__media { position: relative; aspect-ratio: 16 / 10; }
  .hero-reel__frame img { object-position: 50% 50%; }
  .hero-reel::after { display: none; }
  .hero-reel .wrap { padding-block: var(--jpl-space-6); }
  .hero-reel__pause { top: var(--jpl-space-3); bottom: auto; right: var(--jpl-space-3); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-reel__frame { animation: none; }
  .hero-reel__frame:first-of-type { opacity: 1; }
  .hero-reel__video { display: none; }
  .hero-reel__pause { display: none; }
}
