/* ERP hero height + Microsoft technologies section. Loaded only by erp.html. */

.phero--erp-fullscreen {
  --arc-erp-header-height: 60px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--arc-erp-header-height));
  min-height: calc(100dvh - var(--arc-erp-header-height));
  padding: clamp(48px, 7svh, 88px) 0 clamp(52px, 7svh, 84px);
}

.phero--erp-fullscreen > .wrap {
  position: relative;
  z-index: 2;
}

.phero--erp-fullscreen .pd-grid {
  width: 100%;
}

.arc-ms-tech {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 60px);
  min-height: calc(100dvh - 60px);
  padding: clamp(72px, 8svh, 112px) 0;
  background: #f1f2f5;
  border-top: 1px solid rgba(216, 218, 230, 0.72);
  border-bottom: 1px solid rgba(216, 218, 230, 0.72);
}

.arc-ms-tech__inner,
.arc-ms-tech__logos {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 48px;
}

.arc-ms-tech__inner {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: clamp(520px, 58svh, 720px);
}

.arc-ms-tech__content {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
}

.arc-ms-tech__title {
  margin: 0;
  color: var(--arc-ink);
  font-family: var(--arc-font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.arc-ms-tech__title .arc-ms-tech__word {
  display: inline-flex;
  overflow: hidden;
  vertical-align: top;
}

.arc-ms-tech__title .arc-ms-tech__word-text {
  display: inline-block;
}

.arc-ms-tech--armed:not(.has-entered) .arc-ms-tech__title .arc-ms-tech__word-text {
  opacity: 0;
  transform: translate3d(0, 2em, 0);
}

.arc-ms-tech--armed.is-inview:not(.has-entered) .arc-ms-tech__title .arc-ms-tech__word-text {
  animation:
    arcMsTitleSlide 1.2s cubic-bezier(0.55, 0.21, 0.07, 0.87) calc(var(--line-index, 0) * 110ms) forwards,
    arcMsTitleFade 280ms linear calc(var(--line-index, 0) * 110ms) forwards;
}

.arc-ms-tech__text {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--arc-ink-70);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.62;
}

.arc-ms-tech__benefits {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 520px;
  margin: 30px auto 0;
  padding: 0;
  color: var(--arc-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  text-align: left;
}

.arc-ms-tech__benefits li {
  position: relative;
  padding-left: 34px;
}

.arc-ms-tech__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--arc-ink);
  box-shadow: 0 4px 10px rgba(27, 30, 42, 0.12);
}

.arc-ms-tech__benefits li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--arc-paper);
  border-bottom: 2px solid var(--arc-paper);
  transform: rotate(-45deg);
}

.arc-ms-tech__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 36px;
  padding: 0 24px;
  border: 1px solid var(--arc-ink);
  border-radius: 999px;
  background: var(--arc-ink);
  color: var(--arc-paper);
  font-family: var(--arc-font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease);
}

.arc-ms-tech__button:hover {
  background: var(--arc-ink-90);
  border-color: var(--arc-ink-90);
  color: var(--arc-paper);
  box-shadow: 0 12px 28px rgba(27, 30, 42, 0.18);
  transform: translateY(-1px);
}

.arc-ms-tech__button:focus-visible {
  outline: none;
  box-shadow: var(--arc-shadow-focus);
}

.arc-ms-tech--armed:not(.has-entered) [data-arc-ms-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 620ms linear, transform 900ms cubic-bezier(0.075, 0.82, 0.165, 1);
}

.arc-ms-tech--armed.is-inview:not(.has-entered) .arc-ms-tech__text {
  transition-delay: calc(var(--arc-ms-title-lines, 1) * 110ms + 220ms);
}

.arc-ms-tech--armed.is-inview:not(.has-entered) .arc-ms-tech__benefits {
  transition-delay: calc(var(--arc-ms-title-lines, 1) * 110ms + 360ms);
}

.arc-ms-tech--armed.is-inview:not(.has-entered) .arc-ms-tech__button {
  transition-delay: calc(var(--arc-ms-title-lines, 1) * 110ms + 500ms);
}

.arc-ms-tech--armed.is-inview:not(.has-entered) [data-arc-ms-reveal],
.arc-ms-tech--armed.has-entered [data-arc-ms-reveal],
.arc-ms-tech--armed.has-entered .arc-ms-tech__title .arc-ms-tech__word-text {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.arc-ms-tech__logos {
  position: absolute;
  inset: clamp(56px, 7svh, 96px) 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 30px 1fr 90px;
  column-gap: 20px;
  container-type: size;
  pointer-events: none;
}

.arc-ms-tech__logo {
  position: relative;
  width: 90px;
  aspect-ratio: 1;
  pointer-events: none;
}

.arc-ms-tech--armed:not(.has-entered) .arc-ms-tech__logo {
  opacity: 0;
}

.arc-ms-tech--armed.is-inview:not(.has-entered) .arc-ms-tech__logo {
  animation: arcMsLogoIn 1.25s cubic-bezier(0.19, 1, 0.22, 1) calc(var(--icon-index, 0) * 100ms) both;
}

.arc-ms-tech--armed.has-entered .arc-ms-tech__logo {
  opacity: 1;
}

.arc-ms-tech__logo-wrap,
.arc-ms-tech__ticker-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(216, 218, 230, 0.62);
  border-radius: 8px;
  background: var(--arc-paper);
  box-shadow: 0 12px 28px rgba(27, 30, 42, 0.055), 0 2px 6px rgba(27, 30, 42, 0.035);
}

.arc-ms-tech__logo-wrap {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.arc-ms-tech__logo img,
.arc-ms-tech__ticker-logo img {
  display: block;
  width: 66%;
  height: 66%;
  object-fit: contain;
}

.arc-ms-tech__logo:nth-child(1) {
  grid-area: 1 / 2 / span 1 / span 1;
  align-self: start;
  justify-self: start;
}

.arc-ms-tech__logo:nth-child(2) {
  grid-area: 1 / 11 / span 1 / span 1;
  align-self: start;
  justify-self: end;
}

.arc-ms-tech__logo:nth-child(3) {
  grid-area: 3 / 2 / span 1 / span 1;
  align-self: end;
  justify-self: start;
}

.arc-ms-tech__logo:nth-child(4) {
  grid-area: 3 / 11 / span 1 / span 1;
  align-self: end;
  justify-self: end;
}

.arc-ms-tech__logo:nth-child(5) {
  grid-area: 2 / 1 / span 1 / span 1;
  align-self: center;
  justify-self: start;
}

.arc-ms-tech__logo:nth-child(6) {
  grid-area: 2 / 12 / span 1 / span 1;
  align-self: center;
  justify-self: end;
}

.arc-ms-tech__logo:nth-child(7) {
  grid-area: 2 / 3 / span 1 / span 1;
  align-self: center;
  justify-self: start;
}

.arc-ms-tech__logo:nth-child(8) {
  grid-area: 2 / 10 / span 1 / span 1;
  align-self: center;
  justify-self: end;
}

.arc-ms-tech__logo:nth-child(9) {
  grid-area: 3 / 4 / span 1 / span 1;
  align-self: end;
  justify-self: start;
}

.arc-ms-tech__logo:nth-child(10) {
  grid-area: 3 / 9 / span 1 / span 1;
  align-self: end;
  justify-self: end;
}

.arc-ms-tech__ticker {
  display: none;
}

@keyframes arcMsTitleSlide {
  from { transform: translate3d(0, 2em, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes arcMsTitleFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes arcMsLogoIn {
  from {
    opacity: 0;
    transform: translate3d(var(--enter-x, 0), var(--enter-y, 0), 0) scale(0.4);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes arcMsTickerLeft {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes arcMsTickerRight {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@media (max-width: 1024px) {
  .phero--erp-fullscreen {
    align-items: flex-start;
    padding: 56px 0 58px;
  }

  .arc-ms-tech__inner,
  .arc-ms-tech__logos {
    padding-inline: 32px;
  }

  .arc-ms-tech__inner {
    min-height: 600px;
  }

  .arc-ms-tech__title {
    font-size: 46px;
  }

  .arc-ms-tech__logo {
    width: 64px;
  }

  .arc-ms-tech__logos {
    grid-template-rows: 20px 1fr 52px;
    column-gap: 12px;
  }
}

@media (max-width: 767px) {
  .phero--erp-fullscreen {
    display: block;
    min-height: calc(100svh - 60px);
    padding: 52px 0 48px;
  }

  .arc-ms-tech {
    display: block;
    min-height: calc(100svh - 60px);
    padding: 68px 0 76px;
  }

  .arc-ms-tech__inner {
    display: block;
    min-height: 0;
    padding-inline: 20px;
  }

  .arc-ms-tech__logos {
    display: none;
  }

  .arc-ms-tech__content {
    max-width: 560px;
  }

  .arc-ms-tech__title {
    font-size: 36px;
    line-height: 1.08;
  }

  .arc-ms-tech__text {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.58;
  }

  .arc-ms-tech__benefits {
    width: min(100%, 390px);
    margin-top: 26px;
    font-size: 14.5px;
  }

  .arc-ms-tech__button {
    margin-top: 32px;
  }

  .arc-ms-tech__ticker {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: calc(100% + 40px);
    margin: 44px -20px 0;
    overflow: hidden;
  }

  .arc-ms-tech__ticker-row {
    overflow: hidden;
  }

  .arc-ms-tech__ticker-track {
    display: flex;
    width: max-content;
    animation-duration: 24s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-play-state: paused;
    will-change: transform;
  }

  .arc-ms-tech.is-inview .arc-ms-tech__ticker-track {
    animation-play-state: running;
  }

  .arc-ms-tech__ticker-row--left .arc-ms-tech__ticker-track {
    animation-name: arcMsTickerLeft;
  }

  .arc-ms-tech__ticker-row--right .arc-ms-tech__ticker-track {
    animation-name: arcMsTickerRight;
  }

  .arc-ms-tech__ticker-set {
    display: flex;
    flex: 0 0 auto;
    gap: 18px;
    padding-right: 18px;
  }

  .arc-ms-tech__ticker-logo {
    flex: 0 0 auto;
    width: 64px;
    aspect-ratio: 1;
  }
}

@media (max-width: 360px) {
  .arc-ms-tech__title {
    font-size: 31px;
  }

  .arc-ms-tech__benefits {
    font-size: 14px;
  }

  .arc-ms-tech__ticker-logo {
    width: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phero--erp-fullscreen,
  .arc-ms-tech,
  .arc-ms-tech *,
  .arc-ms-tech *::before,
  .arc-ms-tech *::after {
    animation: none !important;
    transition: none !important;
  }

  .arc-ms-tech--armed .arc-ms-tech__title .arc-ms-tech__word-text,
  .arc-ms-tech--armed [data-arc-ms-reveal],
  .arc-ms-tech--armed .arc-ms-tech__logo {
    opacity: 1;
    transform: none;
  }

  .arc-ms-tech__logo-wrap,
  .arc-ms-tech__ticker-track {
    transform: none !important;
    will-change: auto;
  }
}
