/* Cargo liner parallax band (homepage) */

.liner-parallax {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(28rem, 62vh, 40rem);
  background:
    linear-gradient(180deg, #1a2428 0%, #24353c 38%, #2f4a52 72%, #3a5c66 100%);
  color: var(--ca-sand);
}

.liner-parallax__sky {
  position: absolute;
  inset: 0 0 42% 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(212, 175, 55, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 60%, rgba(66, 145, 139, 0.18), transparent 50%);
  pointer-events: none;
}

.liner-parallax__copy {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 1400px;
  padding: 4.5rem 1.5rem 1rem;
}

@media (min-width: 1024px) {
  .liner-parallax__copy {
    padding: 5.5rem 2.5rem 1.25rem;
  }
}

.liner-parallax__label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ca-sand) 55%, transparent);
}

.liner-parallax__title {
  margin-top: 0.85rem;
  max-width: 16ch;
  font-family: var(--font-display, "Clash Display", sans-serif);
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #f3ede7;
}

.liner-parallax__text {
  margin-top: 0.9rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: color-mix(in srgb, #f3ede7 72%, transparent);
}

.liner-parallax__stage {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  z-index: 1;
  pointer-events: none;
}

.liner-parallax__waves {
  position: absolute;
  inset: 28% 0 0;
  overflow: hidden;
}

.liner-parallax__wave {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 4.5rem;
  border-radius: 100%;
  opacity: 0.35;
  background: radial-gradient(ellipse at center, rgba(180, 220, 230, 0.35), transparent 70%);
}

.liner-parallax__wave--a {
  top: 8%;
  animation: liner-wave 9s ease-in-out infinite;
}

.liner-parallax__wave--b {
  top: 28%;
  opacity: 0.25;
  animation: liner-wave 12s ease-in-out infinite reverse;
}

.liner-parallax__wave--c {
  top: 48%;
  opacity: 0.2;
  animation: liner-wave 10s ease-in-out 0.5s infinite;
}

@keyframes liner-wave {
  0%,
  100% {
    transform: translateX(-2%) scaleY(1);
  }
  50% {
    transform: translateX(2%) scaleY(1.15);
  }
}

.liner-parallax__ship-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6%;
  height: 72%;
}

.liner-parallax__ship {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(72vw, 720px);
  will-change: transform;
  transform: translate3d(-18%, 0, 0);
}

.liner-parallax__ship img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

.liner-parallax__ship.is-bobbing {
  animation: liner-bob 3.2s ease-in-out infinite;
}

@keyframes liner-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .liner-parallax__wave,
  .liner-parallax__ship.is-bobbing {
    animation: none !important;
  }
  .liner-parallax__ship {
    left: 50%;
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 640px) {
  .liner-parallax {
    min-height: 26rem;
  }
  .liner-parallax__ship {
    width: 92vw;
  }
}

/* Expertise placement on container service page */
.liner-parallax--expertise {
  background: linear-gradient(
    180deg,
    #2a3855 0%,
    #27384f 16%,
    #2a4550 48%,
    #2f4f5a 72%,
    #2a3855 100%
  );
}

.liner-parallax--expertise .liner-parallax__title {
  max-width: 28ch;
}
