.mxd-promo__marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.mxd-promo__marquee .marquee__image,
.mxd-promo__marquee .marquee__image img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Portfolio image stacks: hover on desktop, automatic cross-fade on touch devices. */
.mxd-img-anim > img {
  transition: opacity .72s cubic-bezier(.22, .61, .36, 1) !important;
  will-change: opacity;
}

/* CoreX showcase background: visible, automatic and independent of video autoplay. */
.mxd-divider__video.corex-branded-video {
  min-height: clamp(430px, 62vw, 760px);
  background: #151515;
}

.mxd-divider__video.corex-branded-video > video {
  opacity: .32 !important;
}

.mxd-divider__video.corex-branded-video::before {
  z-index: 3;
  background: linear-gradient(180deg, rgba(8,8,10,.36), rgba(8,8,10,.52));
}

.corex-branded-video--menu > video {
  opacity: .34 !important;
}

.corex-branded-video--menu::before {
  z-index: 3;
  background: linear-gradient(180deg, rgba(8,8,10,.3), rgba(8,8,10,.48));
}

.corex-video-slides {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
}

.corex-video-slides img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  filter: saturate(.92) contrast(1.02);
  animation: corex-showcase-crossfade 25s ease-in-out infinite;
  will-change: opacity, transform;
}

.corex-video-slides img:nth-child(1) { animation-delay: 0s; }
.corex-video-slides img:nth-child(2) { animation-delay: 5s; }
.corex-video-slides img:nth-child(3) { animation-delay: 10s; }
.corex-video-slides img:nth-child(4) { animation-delay: 15s; }
.corex-video-slides img:nth-child(5) { animation-delay: 20s; }

@keyframes corex-showcase-crossfade {
  0% { opacity: 0; transform: scale(1.035); }
  5%, 18% { opacity: 1; transform: scale(1); }
  23%, 100% { opacity: 0; transform: scale(1.015); }
}

@media (max-width: 600px) {
  .mxd-divider__video.corex-branded-video {
    min-height: 520px;
  }
  .corex-video-slides img { object-position: center; }
}

@media (max-width: 1199px) {
  .mxd-menu__media {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: .42;
    pointer-events: none;
  }
  .mxd-menu__navigation {
    z-index: 2;
    background: rgba(15,15,15,.62);
    backdrop-filter: blur(2px);
  }
  .corex-branded-video--menu .corex-video-brand {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .corex-video-slides img { animation: none; }
  .corex-video-slides img:first-child { opacity: 1; }
}

.mxd-promo__marquee .marquee__image {
  overflow: hidden;
  background: #181818;
}

.mxd-promo__marquee .marquee__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.corex-whatsapp__icon {
  background: #25d366;
  border-color: rgba(255,255,255,.72);
  overflow: hidden;
}

.corex-whatsapp__icon svg {
  display: none;
}

.corex-whatsapp__icon::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 0;
  background: url('../assets/whatsapp-corex.png') center/contain no-repeat;
}

.corex-whatsapp__icon::after {
  display: none;
}

.corex-language-switch {
  gap: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
}

.corex-language-switch a {
  position: relative;
  min-width: auto;
  min-height: 32px;
  padding: 8px 10px;
  border-radius: 0;
  background: transparent !important;
  color: inherit !important;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  opacity: .48;
  transition: opacity .2s ease, color .2s ease;
}

.corex-language-switch a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 10px;
  background: currentColor;
  opacity: .22;
  transform: translateY(-50%);
}

.corex-language-switch a:hover,
.corex-language-switch a[aria-current="page"] {
  opacity: 1;
}

.corex-language-switch a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: #ff4a2a;
}

@media (max-width: 600px) {
  .mxd-header__controls {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .corex-language-switch {
    position: static !important;
    flex: 0 0 auto;
    padding: 0;
  }

  .corex-language-switch a {
    min-width: auto;
    min-height: 30px;
    padding: 7px 8px;
    font-size: 9px;
  }

  .corex-language-switch a[aria-current="page"]::after {
    left: 8px;
    right: 8px;
    bottom: 3px;
  }

  .mxd-header__link {
    display: none !important;
  }

  .mxd-promo__marquee .marquee__image {
    min-width: 150px;
    min-height: 108px;
  }
}

@media (max-width: 370px) {
  .corex-logo img {
    width: 96px;
  }

  .corex-language-switch a {
    min-width: auto;
    padding-inline: 6px;
  }
}
