/* Original industrial technology banners. Load after styles.css. */
.hero {
  isolation: isolate;
  height: clamp(560px, 43vw, 680px);
  min-height: 560px;
  background: #061321;
}

.hero-track {
  transition: transform .75s cubic-bezier(.22, .61, .36, 1);
}

.hero-slide {
  flex: 0 0 100%;
  overflow: hidden;
  background-color: #061321;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero .slide-a {
  background-image: linear-gradient(90deg, rgba(3, 13, 25, .88) 0%, rgba(4, 17, 31, .65) 29%, rgba(4, 18, 31, .16) 58%, rgba(4, 16, 29, .03) 100%), url("assets/hero-switchgear.webp");
}

.hero .slide-b {
  background-image: linear-gradient(90deg, rgba(3, 13, 25, .9) 0%, rgba(4, 17, 31, .65) 29%, rgba(4, 18, 31, .12) 58%, rgba(4, 16, 29, .03) 100%), url("assets/hero-grid.webp");
}

.hero .slide-c {
  background-image: linear-gradient(90deg, rgba(3, 13, 25, .9) 0%, rgba(4, 17, 31, .66) 29%, rgba(4, 18, 31, .14) 58%, rgba(4, 16, 29, .03) 100%), url("assets/hero-automation.webp");
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-slide::before {
  z-index: 0;
  background: linear-gradient(180deg, rgba(2, 10, 19, .12), transparent 30%, transparent 68%, rgba(2, 10, 19, .45));
}

.hero-slide::after {
  z-index: 1;
  opacity: .17;
  background-image: linear-gradient(rgba(81, 181, 205, .21) 1px, transparent 1px), linear-gradient(90deg, rgba(81, 181, 205, .21) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 25%, #000 75%);
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 75%);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 144px));
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 16px 0 66px;
  color: #fff;
}

.hero-overlay > span {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #8ce7f3;
  opacity: 1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.8px;
  line-height: 1.7;
}

.hero-overlay > span::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #57d9ed;
  box-shadow: 0 0 12px rgba(87, 217, 237, .5);
}

.hero-overlay h1 {
  max-width: 650px;
  margin: 23px 0 23px;
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1.27;
  letter-spacing: 1.6px;
  text-shadow: 0 4px 24px rgba(1, 8, 16, .28);
}

.hero-overlay p {
  max-width: 515px;
  margin: 0 0 32px;
  color: #d4e2ec;
  opacity: 1;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .4px;
}

.hero-overlay .btn {
  border: 1px solid rgba(113, 226, 244, .66);
  border-radius: 2px;
  padding: 13px 30px;
  min-height: 48px;
  background: linear-gradient(110deg, rgba(26, 118, 152, .91), rgba(25, 90, 127, .92));
  color: #f5fdff;
  font-weight: 500;
  box-shadow: 0 5px 26px rgba(2, 15, 31, .18), inset 0 1px 0 rgba(189, 241, 252, .12);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hero-overlay .btn:hover {
  background: #237e9f;
  border-color: #b0f3fb;
  box-shadow: 0 5px 28px rgba(43, 184, 215, .18);
  transform: none;
}

.hero-arrow {
  z-index: 4;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  display: grid;
  place-items: center;
  padding: 0 0 5px;
  border: 1px solid rgba(168, 217, 230, .3);
  border-radius: 50%;
  background: rgba(8, 28, 45, .46);
  color: #d9f5fb;
  font-size: 34px;
  opacity: .78;
  backdrop-filter: blur(8px);
  transition: opacity .2s ease, background .2s ease, border-color .2s ease;
}

.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero:hover .hero-arrow { opacity: .9; }
.hero .hero-arrow:hover {
  opacity: 1;
  background: rgba(27, 106, 132, .75);
  border-color: rgba(155, 237, 250, .8);
}

.hero-dots {
  z-index: 4;
  left: max(72px, calc((100% - 1100px) / 2));
  bottom: 36px;
  transform: none;
  gap: 8px;
  align-items: center;
}

.hero-dots button {
  position: relative;
  width: 34px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  opacity: 1;
  background: transparent;
}

.hero-dots button::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(217, 243, 249, .34);
  transition: background .2s ease, box-shadow .2s ease;
}

.hero-dots button.active { background: transparent; }
.hero-dots button.active::before {
  background: #7be4f3;
  box-shadow: 0 0 9px rgba(82, 223, 244, .45);
}
.hero-dots button:hover::before { background: #d7f9ff; }

.hero a:focus-visible,
.hero button:focus-visible {
  outline: 2px solid #b1f1fb;
  outline-offset: 5px;
}

html[lang='en'] .hero-overlay { padding-top: 16px; }
html[lang='en'] .hero-overlay h1 {
  max-width: 630px;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.2;
  letter-spacing: -.8px;
}
html[lang='en'] .hero-overlay p {
  max-width: 480px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .hero { height: 570px; min-height: 570px; }
  .hero-overlay { width: calc(100% - 100px); }
  .hero-overlay h1 { font-size: 45px; }
  .hero-overlay p { max-width: 430px; font-size: 14px; }
  .hero-dots { left: 50px; }
  .hero-arrow { width: 38px; height: 38px; margin-top: -19px; font-size: 30px; }
  .hero-arrow.prev { left: 8px; }
  .hero-arrow.next { right: 8px; }
  html[lang='en'] .hero-overlay h1 { max-width: 530px; font-size: 44px; }
}

@media (max-width: 560px) {
  .hero { height: 650px; min-height: 600px; max-height: 760px; }
  .hero .hero-slide { background-position: 65% center; }
  .hero .slide-a {
    background-image: linear-gradient(180deg, rgba(3, 13, 25, .06) 0%, rgba(3, 13, 25, .1) 23%, rgba(3, 13, 25, .68) 46%, rgba(3, 13, 25, .96) 100%), url("assets/hero-switchgear.webp");
  }
  .hero .slide-b {
    background-image: linear-gradient(180deg, rgba(3, 13, 25, .08) 0%, rgba(3, 13, 25, .12) 23%, rgba(3, 13, 25, .72) 46%, rgba(3, 13, 25, .96) 100%), url("assets/hero-grid.webp");
  }
  .hero .slide-c {
    background-image: linear-gradient(180deg, rgba(3, 13, 25, .07) 0%, rgba(3, 13, 25, .1) 23%, rgba(3, 13, 25, .7) 46%, rgba(3, 13, 25, .96) 100%), url("assets/hero-automation.webp");
  }
  .hero-slide::after { opacity: .09; background-size: 52px 52px; }
  .hero-overlay,
  html[lang='en'] .hero-overlay {
    width: calc(100% - 48px);
    justify-content: flex-end;
    padding: 190px 0 100px;
  }
  .hero-overlay > span { font-size: 9px; letter-spacing: 2.2px; gap: 10px; }
  .hero-overlay > span::before { width: 22px; }
  .hero-overlay h1 {
    margin: 18px 0 17px;
    font-size: clamp(32px, 9.2vw, 44px);
    line-height: 1.34;
    letter-spacing: 1px;
  }
  .hero-overlay p,
  html[lang='en'] .hero-overlay p { margin-bottom: 25px; font-size: 13px; line-height: 1.8; letter-spacing: 0; }
  .hero-overlay .btn { min-height: 46px; padding: 12px 26px; font-size: 13px; }
  html[lang='en'] .hero-overlay h1 {
    font-size: clamp(31px, 8.8vw, 40px);
    letter-spacing: -.5px;
    line-height: 1.23;
  }
  .hero-arrow {
    top: auto;
    bottom: 23px;
    width: 40px;
    height: 40px;
    margin: 0;
    opacity: .9;
  }
  .hero-arrow.prev { left: 24px; }
  .hero-arrow.next { right: 24px; }
  .hero-dots { left: 50%; bottom: 31px; transform: translateX(-50%); gap: 9px; }
  .hero-dots button { width: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-track,
  .hero-overlay .btn,
  .hero-arrow,
  .hero-dots button::before { transition: none; }
}
