/* One photographic frame and type scale; each illustration belongs to its subject. */
.subject-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(360px, 32vw, 460px);
  background: var(--primary-color);
  color: var(--bs-white);
}
.subject-banner > img.subject-banner__photo {
  position: absolute; z-index: -3; inset: 0 0 0 auto;
  height: 100%; width: 67%; object-fit: cover;
}
.subject-banner::before {
  content: ""; position: absolute; z-index: -2; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--primary-color) 52%, transparent 52%);
}
.subject-banner__inner {
  width: min(1200px, calc(100% - 64px)); margin-inline: auto; padding-block: clamp(30px,3.4vw,52px);
  align-self: start; display: grid; grid-template-rows: 44px auto auto auto;
  align-content: start; justify-items: start;
}
.subject-banner .subject-banner__inner :is(h1,h2) {
  grid-row: 2; max-width: min(18ch,54%); margin: 8px 0 12px; color: var(--bs-white);
  font: 600 clamp(36px,4.4vw,66px)/1.04 Poppins,sans-serif;
  letter-spacing: -.035em; text-wrap: balance; overflow-wrap: break-word;
}
.subject-banner__intro { grid-row: 3; max-width: min(51%,47ch); }
.subject-banner .subject-banner__intro, .subject-banner .subject-banner__intro p {
  color: var(--bs-white); font: 400 clamp(16px,1.3vw,19px)/1.55 Poppins,sans-serif; margin-block: 0;
}
.subject-banner .subject-banner__eyebrow, .subject-banner a.subject-banner__back {
  grid-row: 1; align-self: center;
  color: var(--bs-white); font-size: 14px; font-weight: 600; margin: 0;
}
.subject-banner a.subject-banner__back { display: inline-flex; align-items: center; min-height: 44px; }
.subject-banner a.subject-banner__back:hover { text-decoration: underline; }
.subject-banner a.subject-banner__cta {
  grid-row: 4;
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  margin-top: 18px; padding: 10px 20px; border-radius: 99px; background: var(--primary-color);
  color: var(--bs-white); font: 600 14px/1.4 Poppins,sans-serif;
}
.subject-banner a.subject-banner__cta:is(:hover,:focus-visible) { color: var(--bs-white); background: var(--primary-color); }
.subject-banner__count { position: absolute; inset: auto auto 16px 5%; font-size: 13px; color: var(--bs-white); }
.subject-banner--corporate-mobility .subject-banner__photo { object-position: center 16%; }
.subject-banner--international-school-relocation .subject-banner__photo { object-position: center 38%; }
.cml-original-logistics :is(.subject-banner--freight,.subject-banner--moving,.subject-banner--pets,.banner-slider-eight:has(.subject-banner)) { margin-top: 84px; }
.subject-art {
  position: absolute; z-index: -1; right: max(6%,calc((100% - 1200px) / 2));
  bottom: 5%; width: clamp(220px,30vw,440px); height: auto;
  color: var(--bs-white); opacity: .87; pointer-events: none;
  filter: drop-shadow(0 1px 2px var(--secondary-color));
}
.subject-art__line { stroke: var(--cml-accent); stroke-width: 2; }
.subject-art__secondary { stroke: var(--cml-accent); opacity: .65; stroke-width: 1; }
.subject-art__traveller { fill: var(--bs-white); stroke: var(--primary-color); offset-distance: 38%; offset-rotate: 0deg; }
.subject-art__relay, .subject-art__category { fill: var(--cml-accent); }
.subject-banner--pets .subject-art__line { stroke-dasharray: 3 5; }
.subject-banner--diplomatic-relocation .subject-art__line { stroke-dasharray: 9 3; }
.banner-slider-eight.owl-carousel.owl-theme:has(.subject-banner) .owl-nav button[class*="owl-"] {
  top: 16px; right: 16px; left: auto; transform: none;
  width: 44px; height: 44px; line-height: 42px;
}
.banner-slider-eight.owl-carousel.owl-theme:has(.subject-banner) .owl-nav button.owl-prev { right: 68px; }
.subject-banner--vip-local-moves::after {
  content: ""; pointer-events: none; position: absolute; z-index: -1;
  inset: 0 0 0 55%; opacity: 0;
  background: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .subject-art__traveller { animation: banner-itinerary 9s ease-in-out infinite; }
  .subject-art__relay { animation-delay: -4s; animation-duration: 12s; }
  .subject-art__exchange { stroke-dasharray: 18 6; animation: banner-exchange 8s linear infinite; }
  .subject-art__category { animation: banner-glint 6s ease-in-out infinite; }
  .subject-banner--pets .subject-art__traveller, .subject-banner--pet-relocation .subject-art__traveller { animation-duration: 13s; }
  .subject-banner--freight .subject-art__traveller { animation-timing-function: linear; animation-duration: 7s; }
  .subject-art__lid { animation: banner-settle 7s ease-in-out infinite; }
  .subject-art__box { animation: banner-pack 7s ease-in-out infinite; }
  .subject-art__gloss { animation: banner-glint 9s ease-in-out infinite; }
  .subject-banner--vip-local-moves::after { animation: banner-reflection 12s ease-in-out infinite; }
  .owl-item:not(.active) .subject-art__traveller { animation-play-state: paused; }
  .subject-banner.cml-motion-offscreen::after,
  .subject-banner.cml-motion-offscreen .subject-art * { animation-play-state: paused; }
  @keyframes banner-itinerary {
    0% { offset-distance: 0%; opacity: 0; }
    8%,88% { opacity: 1; }
    96%,100% { offset-distance: 100%; opacity: 0; }
  }
  @keyframes banner-settle { 0%,100% { transform: translateY(-6px); } 40%,75% { transform: translateY(0); } }
  @keyframes banner-pack { 0%,100% { transform: translateX(-5px); } 32%,78% { transform: translateX(0); } }
  @keyframes banner-glint { 0%,70%,100% { opacity: .36; } 40% { opacity: 1; } }
  @keyframes banner-exchange { to { stroke-dashoffset: -48; } }
  @keyframes banner-reflection { 0%,68%,100% { opacity: 0; transform: translateX(-18%); } 35% { opacity: .72; transform: translateX(12%); } 58% { opacity: 0; transform: translateX(24%); } }
}
@media (max-width: 700px) {
  .subject-banner { min-height: calc(clamp(155px,44vw,240px) + 340px); display: flex; align-items: stretch; flex-direction: column; }
  .subject-banner > img.subject-banner__photo { position: static; width: 100%; height: clamp(155px,44vw,240px); }
  .subject-banner::before { background: transparent; }
  .subject-banner__inner { width: calc(100% - 40px); padding-block: 12px 30px; }
  .subject-banner .subject-banner__inner :is(h1,h2), .subject-banner__intro { max-width: 100%; }
  .subject-art { top: calc(clamp(155px,44vw,240px) - 68px); bottom: auto; right: 20px; width: 190px; }
  .subject-banner__count { inset: 12px 16px auto auto; }
  .subject-banner--vip-local-moves::after { height: clamp(155px,44vw,240px); }
}
