/* An independent decorative scene: no animation can overlap the booking panel. */
:is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero {
  grid-template-areas: "left booking";
  grid-template-rows: auto;
}
:is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__left {
  grid-area: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 500px;
  min-width: 0;
  align-self: center;
}
:is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__intro { padding-top: 0; }
:is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero h1 { margin-bottom: 16px; font-size: clamp(40px, 3.4vw, 48px); line-height: 1.07; }
:is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__lead { max-width: 440px; margin-bottom: 10px; font-size: 17px; font-weight: 500; line-height: 1.6; letter-spacing: -.015em; }
:is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__detail { font-size: 13px; }
:is(.cargo-page, .wg-page, .moving-service-page) .cargo-motion {
  --cargo-motion-cycle: 30s;
  --cargo-bubble-sway: 10%;
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 240px;
  margin: 0;
  align-self: center;
  flex-shrink: 0;
}
.cargo-motion__scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  /* Edge fading belongs to the moving artwork, never to the text or controls. */
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.cargo-bubble-path { position: absolute; inset: 0; }
.cargo-bubble-path--extra { display: none; }
.cargo-bubble {
  position: absolute;
  left: var(--x);
  top: var(--still-y, 50%);
  width: var(--size);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f3f5;
  translate: -50% -50%;
}
:is(.cargo-page, .wg-page, .moving-service-page) .cargo-bubble img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
:is(.cargo-page, .wg-page, .moving-service-page) .cargo-bubble--wide img { width: 110%; height: 84%; max-width: none; }
.cargo-motion[data-enhanced="true"] .cargo-bubble-path {
  display: block;
  inset-block: -64px;
  /* Twelve unique phases: three per column, evenly spaced through one shared cycle. */
  --delay: calc(var(--cargo-motion-cycle) * var(--phase) / -12);
  animation: cargo-bubble-diagonal var(--cargo-motion-cycle) var(--delay) linear infinite;
  animation-play-state: paused;
}
.cargo-motion[data-enhanced="true"] .cargo-bubble {
  top: 100%;
  /* A separate transform keeps breathing and rocking independent of the steady upward flow. */
  animation: cargo-bubble-float var(--cargo-bubble-breath-duration, 6s) var(--delay) ease-in-out infinite;
  animation-play-state: paused;
}
.cargo-bubble-path:nth-child(even) .cargo-bubble { --cargo-bubble-direction: -1; }
.cargo-motion[data-running="true"] :is(.cargo-bubble-path, .cargo-bubble) { animation-play-state: running; }

/* The shared phase offsets stagger this six-second motion across all twelve unique items. */
@keyframes cargo-bubble-float {
  0%, 100% {
    transform: translate3d(calc(var(--cargo-bubble-sway) * var(--cargo-bubble-direction, 1) * -1), 0, 0)
      rotate(calc(var(--cargo-bubble-tilt, 15deg) * -1 * var(--cargo-bubble-direction, 1))) scale(var(--cargo-bubble-scale-min, .8));
  }
  50% {
    transform: translate3d(calc(var(--cargo-bubble-sway) * var(--cargo-bubble-direction, 1)), 0, 0)
      rotate(calc(var(--cargo-bubble-tilt, 15deg) * var(--cargo-bubble-direction, 1))) scale(var(--cargo-bubble-scale-max, 1.2));
  }
}
/* Steady diagonal flow; pages may adjust the horizontal travel. */
@keyframes cargo-bubble-diagonal {
  0% { transform: translate3d(calc(var(--cargo-bubble-drift, 38px) * -1), 0, 0); opacity: 0; }
  12% { opacity: 1; }
  84% { opacity: 1; }
  100% { transform: translate3d(var(--cargo-bubble-drift, 38px), -100%, 0); opacity: 0; }
}

@keyframes cargo-bubble-up {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 1; }
  84% { opacity: 1; }
  100% { transform: translate3d(0, -100%, 0); opacity: 0; }
}

@media (max-width: 1119px) and (min-width: 980px) {
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero { grid-template-columns: minmax(0, 1fr) 490px; }
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-motion { height: 220px; max-width: 380px; }
}
@media (max-width: 979px) {
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero { grid-template-areas: "left" "booking"; grid-template-rows: auto auto; row-gap: 24px; padding-top: 14px; }
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__left { max-width: none; gap: 10px; }
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-motion { --cargo-bubble-sway: 6%; height: 150px; max-width: 380px; }
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero h1 { margin-bottom: 14px; font-size: 40px; }
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__lead { font-size: 16px; }
  /* Equal vertical spacing within each column, staggered across columns. */
  .cargo-motion[data-enhanced="true"] .cargo-bubble-path {
    inset-block: -42px;
    animation-name: cargo-bubble-up;
    animation-delay: var(--mobile-delay, var(--delay));
  }
}
@media (max-width: 719px) {
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero { row-gap: 18px; }
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__lead { margin-bottom: 0; }
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-motion__scene {
    /* A longer, eased fade keeps clipped fragments quiet at both mobile edges. */
    --cargo-mobile-edge-mask: linear-gradient(to bottom,
      transparent 0%, rgba(0, 0, 0, .08) 6%, rgba(0, 0, 0, .35) 13%,
      rgba(0, 0, 0, .75) 20%, #000 28%, #000 72%,
      rgba(0, 0, 0, .75) 80%, rgba(0, 0, 0, .35) 87%,
      rgba(0, 0, 0, .08) 94%, transparent 100%);
    mask-image: var(--cargo-mobile-edge-mask);
    -webkit-mask-image: var(--cargo-mobile-edge-mask);
  }
}
@media (max-width: 430px) {
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-motion { width: calc(100% - 36px); height: 132px; }
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero h1 { font-size: clamp(34px, 10.25vw, 40px); }
}
/* Include the entire artwork in the centered desktop column. */
@media (min-width: 980px) {
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__lead { margin-bottom: 0; }
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-motion__scene {
    top: 0;
    mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 30px), transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 30px), transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cargo-motion[data-enhanced="true"] .cargo-bubble-path { animation: none !important; inset: 0; }
  .cargo-motion[data-enhanced="true"] .cargo-bubble { animation: none !important; transform: none; top: var(--still-y, 50%); }
  .cargo-motion[data-enhanced="true"] .cargo-bubble-path--extra { display: none; }
}

/* Original transparent artwork uses one consistent size inside each bubble. */
:is(.cargo-page, .wg-page, .moving-service-page) .cargo-bubble--original img {
  width: 76%;
  height: 76%;
  mix-blend-mode: normal;
}

/* Starting price sits with the location line, without a separate badge. */
body.home-page:is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__title-main { display: block; }
body.home-page:is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__title-bottom {
  display: flex; align-items: baseline; gap: 22px;
}
body.home-page:is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__starting-price {
  flex: 0 0 auto; color: #15803d;
  font-size: 24px; font-weight: 750; line-height: 1.2;
  letter-spacing: -.025em; white-space: nowrap;
}
@media (max-width:719px) {
  body.home-page:is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__title-bottom { gap: 18px; }
  body.home-page:is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__starting-price { font-size: 22px; }
}
@media (max-width:359px) {
  body.home-page:is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__title-bottom { gap: 16px; }
  body.home-page:is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__starting-price { font-size: 20px; }
}

/* Fill the available desktop column while keeping the copy and booking in place. */
@media (min-width:1120px) {
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__left { max-width: none; }
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__intro { max-width: 500px; }
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-hero__visual.cargo-motion {
    max-width: none;
    align-self: flex-start;
    /* Align the visible first bubble column with the copy, accounting for its inset. */
    translate: -6% 0;
  }
  /* Increase artwork gently as the scene widens, leaving room between columns. */
  :is(.cargo-page, .wg-page, .moving-service-page) .cargo-motion .cargo-bubble { width: calc(var(--size) * .8); }
}

/* One composition and motion style for the cargo page at every screen size. */
:is(.cargo-page, .moving-service-page) .cargo-motion {
  --cargo-motion-cycle: 10s;
  --cargo-composition-scale: 1;
  --cargo-bubble-sway: 6%;
  --cargo-bubble-tilt: 7deg;
  --cargo-bubble-scale-min: .95;
  --cargo-bubble-scale-max: 1.1;
}
:is(.cargo-page, .moving-service-page) .cargo-motion .cargo-bubble {
  left: calc(var(--desktop-x, calc(var(--x) * .60 + 1.32%)) * var(--cargo-composition-scale));
  width: calc(min(var(--desktop-size, calc(var(--size) * .72)), 11.8%) * var(--cargo-composition-scale));
}
:is(.cargo-page, .moving-service-page) .cargo-motion[data-enhanced="true"] .cargo-bubble {
  /* Twelve distinct breathing phases stay separate from travel, with nearby motifs offset. */
  animation-delay: calc(var(--cargo-bubble-breath-duration, 6s) * var(--breath-phase, 0) / -12);
}
:is(.cargo-page, .moving-service-page) .cargo-motion[data-enhanced="true"] .cargo-bubble-path {
  /* Share proportional phases instead of the old fixed mobile delays. */
  --delay: calc(var(--cargo-motion-cycle) * var(--desktop-phase, var(--phase)) / -12);
  inset-block: 0;
  animation-name: cargo-bubble-diagonal-aligned;
  animation-delay: var(--delay);
}
@media (min-width: 980px) {
  :is(.cargo-page, .moving-service-page) .cargo-hero__visual.cargo-motion { translate: none; align-self: flex-start; }
  :is(.cargo-page, .moving-service-page) .cargo-motion__scene {
    top: -64px;
    mask-image: linear-gradient(to bottom, transparent, #000 36px, #000 calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 36px, #000 calc(100% - 24px), transparent);
  }
}
@media (max-width: 979px) {
  :is(.cargo-page, .moving-service-page) .cargo-hero__visual.cargo-motion {
    --cargo-composition-scale: 1.15;
    height: auto;
    aspect-ratio: 1.9;
  }
  :is(.cargo-page, .moving-service-page) .cargo-motion__scene {
    /* Scale the desktop edge fades with the mobile scene. */
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 92%, transparent);
  }
}

/* Enter inside the text-aligned scene, then drift right without clipping the leftmost circles. */
@keyframes cargo-bubble-diagonal-aligned {
  0% { transform: translate3d(calc(-5% * var(--cargo-composition-scale, 1)), 0, 0); opacity: 0; }
  12% { opacity: 1; }
  84% { opacity: 1; }
  100% { transform: translate3d(calc(10% * var(--cargo-composition-scale, 1)), -100%, 0); opacity: 0; }
}

/* Keep responsive picture sources transparent to the bubble layout. */
.cargo-motion picture.cargo-format-picture { display: contents; }

/* Moving keeps its existing two-column booking grid. */
.moving-service-page .prototype-order-hero__left.cargo-hero__left { grid-area: auto; }
@media (max-width: 979px) {
  .moving-service-page .prototype-order-hero__left.cargo-hero__left {
    width: min(100%, 490px);
    max-width: 490px;
    margin-inline: auto;
  }
}
