/* Allies marquee (outside main, before footer).
   Prototype later layout: copy | logo lanes.
   Breakpoints: --mv-bp-md 1020px, --mv-bp-sm 720px.
   Type: home-typography.css */

.o3-allies {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--mv-section-space) var(--mv-page-gutter);
  display: grid;
  grid-template-columns: minmax(240px, .88fr) minmax(0, 2.12fr);
  align-items: stretch;
  /* background: var(--mv-color-white, #fff); */
  background: transparent;
  overflow: hidden;
  border-top: 1px solid #d9d3c9;
  border-bottom: 1px solid #d9d3c9;
}

.o3-allies-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 28px clamp(20px, 3vw, 48px) 28px 0;
  border-right: 0;
  border-bottom: 0;
}

.o3-allies-head h2 {
  margin: 0;
  max-width: 18ch;
  overflow-wrap: anywhere;
  font: 500 var(--mv-text-h2, clamp(35px, 3.25vw, 50px)) / 1.04 var(--mv-font-display, 'Playfair Display', Georgia, serif);
}

.option-three .o3-allies-head p {
  max-width: 300px;
  margin: 0;
  color: var(--o3-grey, var(--mv-color-muted));
  font-size: 13px; /* experiment -3px: 10px */
  line-height: 1.55;
}

.option-three .o3-allies-head > p {
  max-width: 260px;
  margin: 22px 0 0;
  text-align: left;
}

.o3-allies-lanes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 28px 0 28px clamp(16px, 2vw, 36px);
  overflow: hidden;
  background: transparent;
}

.o3-allies-lanes .o3-logo-lane {
  grid-template-columns: 158px minmax(0, 1fr);
}

.o3-allies-lanes .o3-logo-lane:last-child {
  border-bottom: 0;
}

.o3-logo-lane {
  display: grid;
  align-items: center;
  min-width: 0;
  border-top: 1px solid #cfc7bb;
}

.option-three .o3-logo-lane > p {
  margin: 0;
  padding: 27px 16px 27px 0;
  font-size: var(--mv-text-label, 10px);
  line-height: 1.35;
}

.o3-logo-window {
  min-width: 0;
  overflow: hidden;
  padding: 16px 0;
  border-left: 0;
}

.o3-logo-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 38px;
  will-change: transform;
  animation: o3-allies-forward 28s linear infinite;
}

.o3-logo-lane.commercial .o3-logo-track {
  animation-duration: 32s;
}

.o3-logo-item {
  width: var(--logo-item-width, 138px);
  height: 76px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: transparent;
}

.o3-logo-item img {
  display: block;
  width: var(--logo-width, auto);
  height: var(--logo-height, auto);
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(.9);
  opacity: .9;
  transition: filter var(--mv-motion-fast), opacity var(--mv-motion-fast);
}

@media (hover: hover) {
  .o3-logo-window:hover .o3-logo-track {
    animation-play-state: paused;
  }

  .o3-logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
  }
}

@keyframes o3-allies-forward {
  from {
    transform: translate3d(-50%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1020px) {
  .o3-allies {
    display: block;
  }

  .o3-allies-head {
    padding: 0 0 32px;
    border-right: 0;
    border-bottom: 0;
  }

  .o3-allies-head h2 {
    max-width: none;
  }

  .o3-allies-head > p {
    max-width: 440px;
  }

  .o3-allies-lanes {
    padding: 18px 0 0;
  }

  .o3-allies-lanes .o3-logo-lane {
    grid-template-columns: minmax(140px, 178px) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .o3-allies {
    padding: var(--mv-section-space-compact) var(--mv-page-gutter);
  }

  .o3-allies-head {
    padding-bottom: 28px;
  }

  .o3-allies-lanes {
    padding: 0;
  }

  .o3-allies-lanes .o3-logo-lane {
    grid-template-columns: minmax(0, 1fr);
  }

  .o3-logo-lane > p {
    padding: 18px 0 8px;
  }

  .o3-logo-window {
    border-left: 0;
    border-top: 1px solid #cfc7bb;
  }

  .o3-logo-track {
    gap: 20px;
  }

  .o3-logo-item {
    height: 66px;
    transform: scale(.86);
  }

  .o3-logo-item img {
    width: var(--logo-width, auto);
    height: var(--logo-height, auto);
    max-width: none;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .o3-logo-track {
    animation: none;
    transform: none;
  }
}
