/* ElamorTech Hero: light project-led organic technology. */
.hero.section {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  background: #eaf4ff !important;
  color: #10284a !important;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 0 !important;
  height: 580px;
  min-height: 580px;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: 0 !important;
  align-items: stretch;
  overflow: hidden;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(122deg, #f3f8ff 0%, #eaf4ff 52%, #dceeff 100%) !important;
  box-shadow: none;
}

.hero-shell .hero-copy,
.hero-shell .hero-copy.is-project-copy {
  position: relative;
  z-index: 5;
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 580px;
  flex-direction: column;
  justify-content: center;
  padding: 58px 20px 54px max(28px, calc((100vw - var(--et-max)) / 2)) !important;
}

.hero-copy .hero-label {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #176cf2;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-copy .hero-label::before {
  width: 28px;
  height: 2px;
  background: #176cf2;
  content: "";
}

.hero-copy h1,
.hero.section .hero-copy h1 {
  max-width: 570px;
  margin: 18px 0 14px;
  color: #10284a !important;
  font-size: clamp(3rem, 3.6vw, 3.625rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.05em;
}

.hero-copy .hero-lede {
  max-width: 470px;
  margin: 0;
  color: #506987 !important;
  font-size: clamp(1.06rem, 1.2vw, 1.18rem);
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.hero-copy .hero-benefits {
  display: none !important;
}

.hero-copy .hero-actions {
  flex-wrap: nowrap;
  margin-top: 25px;
}

.hero-copy .button {
  border-color: #176cf2 !important;
  background: #176cf2 !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(23, 108, 242, .20);
}

.hero-copy .button:hover {
  background: #0c5edc !important;
}

.hero-copy .button.button-ghost {
  border-color: #b8d0eb !important;
  background: rgba(255, 255, 255, .62) !important;
  color: #17365b !important;
  box-shadow: none !important;
}

.hero-visual {
  position: absolute !important;
  z-index: 2;
  inset: 0 0 0 42%;
  height: auto !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 800' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M150 0C40 150 122 245 112 388C100 548 218 690 328 800H1000V0Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 800' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M150 0C40 150 122 245 112 388C100 548 218 690 328 800H1000V0Z'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.hero-visual::after {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  background: linear-gradient(90deg, #eaf4ff 0%, rgba(234, 244, 255, .34) 38%, transparent 100%);
  content: '';
  pointer-events: none;
}

.hero-visual .hero-project {
  position: absolute !important;
  z-index: 2;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(14px);
  transition: opacity .55s ease, transform .7s ease, visibility .55s ease;
}

.hero-visual .hero-project.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.hero-visual .hero-project-image {
  position: absolute;
  inset: 0;
  height: auto !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.hero-visual .hero-project-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: right center;
  opacity: 1;
  filter: none;
  transform: scale(1.01);
  transition: transform 6.5s ease;
}

.hero-visual .hero-project.is-active .hero-project-image img {
  transform: scale(1);
}

.hero-visual .hero-project-top,
.hero-visual .hero-project-caption {
  display: none !important;
}

.hero-slider-controls {
  right: 28px !important;
  bottom: 25px !important;
  left: auto !important;
  z-index: 6 !important;
  gap: 10px;
}

.hero-slider-controls button {
  border-color: rgba(23, 108, 242, .28) !important;
  background: rgba(255, 255, 255, .78) !important;
  color: #176cf2 !important;
  box-shadow: 0 6px 16px rgba(23, 108, 242, .12);
  backdrop-filter: blur(10px);
}

.hero-slider-dots button {
  background: #a9c9ee !important;
}

.hero-slider-dots button[aria-current='true'] {
  background: #176cf2 !important;
}

@media (max-width: 820px) {
  .hero.section {
    padding-top: 12px !important;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    border-radius: 0 !important;
  }

  .hero-shell .hero-copy,
  .hero-shell .hero-copy.is-project-copy {
    width: 100%;
    min-height: 0;
    padding: 42px max(22px, calc((100vw - var(--et-max)) / 2)) 18px !important;
  }

  .hero-copy h1,
  .hero.section .hero-copy h1 {
    max-width: 520px;
    font-size: clamp(2.25rem, 8vw, 2.75rem) !important;
  }

  .hero-visual {
    position: relative !important;
    inset: auto;
    height: 300px !important;
    min-height: 300px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 100%);
  }

  .hero-visual .hero-project-image {
    inset: 0;
    height: auto !important;
  }

  .hero-slider-controls {
    right: 18px !important;
    bottom: 16px !important;
  }
}

@media (max-width: 560px) {
  .hero-shell .hero-copy,
  .hero-shell .hero-copy.is-project-copy {
    padding: 34px 20px 14px !important;
  }

  .hero-copy h1,
  .hero.section .hero-copy h1 {
    max-width: 360px;
    font-size: clamp(2.12rem, 9.8vw, 2.5rem) !important;
    line-height: 1.06 !important;
  }

  .hero-copy .hero-lede {
    font-size: .94rem;
  }

  .hero-copy .hero-actions {
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    height: 270px !important;
    min-height: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .hero-project,
  .hero-visual .hero-project-image img {
    transition: none !important;
    transform: none !important;
  }
}
