/* ---------- Rig cards: whole card clickable + image hover ---------- */
.rc { position: relative; }
.rc, .rig-card:not(.soon) { cursor: pointer; }
.rc .links .btn-primary { position: static; }
.rc .links .btn-primary::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rc .links .btn-outline { position: relative; z-index: 2; }
.rc .img img, .rig-card .img img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.rc:hover .img img, .rig-card:not(.soon):hover .img img { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .rc .img img, .rig-card .img img { transition: none; } .rc:hover .img img, .rig-card:not(.soon):hover .img img { transform: none; } }

/* ---------- Slider-format rig images (3840x1600, rig centred, tires on a baseline) ----------
   The image is wider than the card; the empty canvas spills off both sides so the rig itself fills the card. */
.rc .img img.sl, .rig-card .img img.sl { width: 130cqw; left: -15cqw; top: calc(84cqh - 50.1cqw); }

/* Hero entrance and equipment card motion */
@media (prefers-reduced-motion: no-preference) {
  .hero > :is(.eyebrow, .h1, .body-lg, .actions) {
    animation: hero-rise .75s cubic-bezier(.2,.7,.2,1) backwards;
  }
  .hero > .h1 { animation-delay: .1s; }
  .hero > .body-lg { animation-delay: .2s; }
  .hero > .actions { animation-delay: .28s; }
  .hero > .actions:focus-within { animation: none; }
  @keyframes hero-rise {
    from { opacity: 0; translate: 0 18px; }
  }

  @supports (animation-timeline: view()) {
    .rc, .rig-card {
      animation: rig-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }
    .rc:focus-within, .rig-card:focus-within { animation: none; }
    @keyframes rig-rise {
      from { opacity: .78; translate: 0 20px; }
      to { opacity: 1; translate: 0 0; }
    }
  }
}

.rc:has(:focus-visible), .rig-card:focus-visible {
  outline: 2px solid var(--safety-orange);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .rc, .rig-card:not(.soon) {
    transition: transform .3s ease, box-shadow .3s ease;
  }
  .rc:hover, .rig-card:not(.soon):hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 28px rgba(1, 26, 45, .25);
  }
}
