.home-hero {
  --home-hero-duration: 7200ms;
  min-height: max(760px, 100svh);
  align-items: end;
  background: #06142f;
}

.home-hero::before,
.home-hero::after {
  display: none;
}

.home-hero-media,
.home-hero-slide,
.home-hero-scrim,
.home-hero-accent {
  position: absolute;
  inset: 0;
}

.home-hero-media {
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-hero-slide {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.35s cubic-bezier(.22, .61, .36, 1), visibility 1.35s;
}

.home-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.home-hero-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 68% center;
  transform: scale(1.015);
  filter: saturate(.88) contrast(1.02);
  will-change: transform;
}

.home-hero-slide:nth-child(2) img { object-position: 72% center; }
.home-hero-slide:nth-child(3) img { object-position: 74% center; }

.home-hero-slide.is-active img {
  animation: home-hero-drift var(--home-hero-duration) ease-out both;
}

.home-hero-scrim {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 12, 30, .97) 0%, rgba(4, 15, 35, .92) 34%, rgba(5, 18, 42, .72) 57%, rgba(4, 15, 35, .2) 83%, rgba(4, 15, 35, .36) 100%),
    linear-gradient(0deg, rgba(3, 12, 30, .84) 0%, rgba(3, 12, 30, .2) 54%, rgba(3, 12, 30, .32) 100%);
  pointer-events: none;
}

.home-hero-accent {
  z-index: 2;
  background:
    linear-gradient(120deg, transparent 0 61%, rgba(255, 255, 255, .1) 61.05%, transparent 61.15%),
    radial-gradient(circle at 82% 27%, rgba(106, 160, 255, .13), transparent 29%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.home-hero .hero-inner {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 40px), 1180px);
  padding-top: 146px;
  padding-bottom: clamp(112px, 15vh, 162px);
}

.home-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.home-hero .hero-logo-card {
  margin-bottom: 0;
  border-color: rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.home-hero-language-switch {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background: rgba(4, 15, 35, .58);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .2);
  backdrop-filter: blur(12px);
}

.home-hero-language-switch > span {
  padding: 0 7px;
  color: #c8d6e9;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.home-hero-language-switch a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  color: #e8f0fb;
  font-size: .7rem;
  font-weight: 900;
  text-decoration: none;
}

.home-hero-language-switch a:hover,
.home-hero-language-switch a[aria-current="page"] {
  background: #fff;
  color: #06142f;
}

.site-header .language-nav {
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 11px;
  background: rgba(3, 12, 30, .3);
}

.home-hero-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
  color: #b8d1ff;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-hero-kicker::before {
  width: 30px;
  height: 2px;
  background: #73e0bc;
  content: "";
}

.home-hero .hero-content { max-width: 770px; }

.home-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 6vw, 5.65rem);
  font-weight: 790;
  line-height: .98;
  letter-spacing: -.065em;
  text-wrap: balance;
  text-shadow: 0 10px 38px rgba(0, 0, 0, .24);
}

.home-hero h1 em { color: #aac8ff; }

.home-hero .lead {
  max-width: 690px;
  color: #e0e8f4;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .34);
}

.home-hero .button.ghost {
  border-color: rgba(255, 255, 255, .58);
  background: rgba(7, 22, 49, .34);
  backdrop-filter: blur(8px);
}

.home-hero .hero-proof {
  max-width: 720px;
  color: #d2ddec;
}

.home-hero-controls {
  position: absolute;
  z-index: 4;
  right: max(64px, calc((100% - 1180px) / 2));
  bottom: 28px;
  display: none;
  align-items: stretch;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 15px;
  background: rgba(4, 15, 35, .58);
  box-shadow: 0 20px 58px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
}

.home-hero.is-carousel-ready .home-hero-controls { display: flex; }
.home-hero-dots { display: flex; gap: 4px; }

.home-hero-dot,
.home-hero-pause {
  position: relative;
  border: 0;
  border-radius: 10px;
  color: #dce7f8;
  background: transparent;
  cursor: pointer;
}

.home-hero-dot {
  min-width: 104px;
  padding: 8px 11px 13px;
  text-align: left;
}

.home-hero-dot:hover,
.home-hero-dot[aria-pressed="true"],
.home-hero-pause:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.home-hero-dot span {
  margin-right: 7px;
  color: #8fb8ff;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.home-hero-dot small {
  font-size: .7rem;
  font-weight: 780;
}

.home-hero-dot::after,
.home-hero-dot::before {
  position: absolute;
  right: 11px;
  bottom: 7px;
  left: 11px;
  height: 2px;
  border-radius: 99px;
  content: "";
  transform-origin: left center;
}

.home-hero-dot::after { background: rgba(255, 255, 255, .18); }

.home-hero-dot::before {
  z-index: 1;
  background: #73e0bc;
  transform: scaleX(0);
}

.home-hero.is-progressing .home-hero-dot[aria-pressed="true"]::before {
  animation: home-hero-progress var(--home-hero-duration) linear forwards;
}

.home-hero-pause {
  display: grid;
  width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  place-items: center;
}

.home-hero-pause > span {
  position: relative;
  display: block;
  width: 12px;
  height: 14px;
}

.home-hero-pause > span::before,
.home-hero-pause > span::after {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.home-hero-pause > span::before { left: 1px; }
.home-hero-pause > span::after { right: 1px; }

.home-hero-pause[aria-pressed="true"] > span::before {
  top: 1px;
  bottom: auto;
  left: 2px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.home-hero-pause[aria-pressed="true"] > span::after { display: none; }

.home-hero .scroll-cue {
  z-index: 4;
  right: 20px;
  bottom: 128px;
  opacity: .78;
}

@keyframes home-hero-drift {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-.75%, 0, 0); }
}

@keyframes home-hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 1040px) {
  .home-hero .hero-inner { padding-bottom: 152px; }
  .home-hero-controls { right: 20px; bottom: 22px; }
  .home-hero .scroll-cue { display: none; }
}

@media (max-width: 860px) {
  .home-hero { min-height: max(790px, 100svh); }
  .home-hero .hero-inner { padding-top: 122px; }
  .home-hero-slide img { object-position: 68% center; }
  .home-hero-slide:nth-child(2) img { object-position: 70% center; }
  .home-hero-slide:nth-child(3) img { object-position: 73% center; }
  .home-hero-scrim {
    background:
      linear-gradient(90deg, rgba(3, 12, 30, .94) 0%, rgba(4, 15, 35, .73) 100%),
      linear-gradient(0deg, rgba(3, 12, 30, .92) 0%, rgba(3, 12, 30, .28) 62%, rgba(3, 12, 30, .46) 100%);
  }
  .home-hero-accent { opacity: .65; }
  .home-hero-controls { left: 20px; right: 20px; justify-content: space-between; }
  .home-hero-dots { flex: 1; }
  .home-hero-dot { flex: 1; }
}

@media (max-width: 600px) {
  .home-hero {
    min-height: max(850px, 100svh);
    align-items: end;
  }
  .home-hero .hero-inner {
    width: min(calc(100% - 32px), 1180px);
    padding-top: 112px;
    padding-bottom: 116px;
  }
  .home-hero .hero-logo-card {
    margin-bottom: 0;
    padding: 7px 12px 7px 7px;
  }
  .home-hero-meta {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
  }
  .home-hero-language-switch {
    min-height: 46px;
    padding: 4px;
  }
  .home-hero-language-switch > span { padding-inline: 6px; }
  .home-hero-language-switch a { width: 34px; height: 36px; }
  .home-hero .hero-logo-card img { width: 56px; height: 40px; }
  .home-hero-kicker {
    margin-bottom: 12px;
    font-size: .67rem;
    letter-spacing: .1em;
  }
  .home-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.45rem, 12.4vw, 3.55rem);
    line-height: 1;
  }
  .home-hero .lead {
    margin-bottom: 23px;
    font-size: 1rem;
    line-height: 1.57;
  }
  .home-hero .hero-proof {
    gap: 7px 14px;
    margin-top: 23px;
    font-size: .78rem;
  }
  .home-hero-controls {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 6px;
  }
  .home-hero-dot {
    min-width: 0;
    min-height: 44px;
    padding: 8px 9px 13px;
    text-align: center;
  }
  .home-hero-dot span { margin-right: 0; }
  .home-hero-dot small { display: none; }
  .home-hero-dot::after,
  .home-hero-dot::before { right: 9px; left: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-slide { transition: none; }
  .home-hero-slide img,
  .home-hero-slide.is-active img { animation: none; transform: none; }
  .home-hero-dot::before { animation: none !important; }
  .home-hero-pause { display: none; }
}
