.home-discover {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  overflow: clip;
  padding-top: max(77px, var(--discover-nav-height, 0px));
  color: #102657;
  text-align: center;
  background: #eff5ff;
}

.home-discover::before,
.home-discover::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: '';
}

.home-discover::before {
  inset: 36% -12% -45%;
  border-radius: 52% 54% 0 0 / 45% 58% 0 0;
  background: radial-gradient(ellipse at 50% 12%, #2255bf 0%, #123783 48%, #081b48 76%);
  transform: rotate(-7deg);
}

.home-discover::after {
  bottom: -60%;
  left: 50%;
  width: min(92vw, 64rem);
  aspect-ratio: 1;
  border: 1px solid #a5d2ff47;
  border-radius: 50%;
  box-shadow: 0 0 0 1.1rem #c4ddff16, inset 0 0 0 1.1rem #c4ddff16;
  transform: translateX(-50%);
}

.home-discover__content {
  display: grid;
  grid-template-rows: auto minmax(15rem, 1fr) auto;
  justify-items: center;
  min-width: 0;
  padding-bottom: clamp(1rem, 4vh, 2.5rem);
}

.home-discover__intro {
  padding: clamp(1.25rem, 4vh, 2.75rem) 1rem 0;
}

.home-discover__intro h1 {
  margin: 0;
  text-wrap: balance;
}

.home-discover__intro p {
  margin: 0.7rem 0 0;
  color: #344c75;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.4;
  text-wrap: balance;
}

.home-discover__stage {
  position: relative;
  display: grid;
  align-items: center;
  width: 100%;
  min-width: 0;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
}

.home-discover__stage[data-dragging],
.home-discover__stage[data-dragging] a {
  cursor: grabbing;
}

.home-discover__stage:focus-visible {
  outline: 2px solid #2566c9;
  outline-offset: -4px;
}

.home-discover__products {
  --product-width: clamp(13rem, 26vw, max(25rem, 17vw));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 1.5vw, 1.35rem);
  margin: 0;
  padding: 0;
  list-style: none;
  transform: rotate(9deg);
}

.home-discover__product {
  flex: 0 0 auto;
  width: var(--product-width);
}

.home-discover__product a {
  display: block;
  border-radius: 0.75rem;
}

.home-discover__product a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 7px #173d7f;
}

.home-discover__product img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(9rem, 40svh, 27rem);
  object-fit: contain;
  filter: drop-shadow(0 0.95rem 0.8rem #0419386e);
}

.home-discover__stage[data-ready] .home-discover__products {
  position: absolute;
  inset: 0;
  transform: none;
}

.home-discover__stage[data-ready] .home-discover__product {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate3d(calc(-50% + var(--product-x)), calc(-50% + var(--product-y)), 0)
    rotate(var(--product-angle)) scale(var(--product-scale));
}

.home-discover__link {
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border: 1px solid #d6e6ff59;
  border-radius: 0.85rem;
  color: #fff;
  background: #091e4d;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-discover__link:hover,
.home-discover__link:focus {
  color: #bce4ff;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.home-discover__link:focus-visible {
  outline: 2px solid #bce4ff;
  outline-offset: 3px;
}

.home-discover__scroll-icon {
  display: grid;
  justify-items: center;
  width: 1.1rem;
  height: 1.55rem;
  border: 1px solid currentColor;
  border-radius: 1rem;
}

.home-discover__scroll-icon::before {
  width: 0.18rem;
  height: 0.3rem;
  margin-top: 0.28rem;
  border-radius: 1rem;
  background: currentColor;
  content: '';
  animation: home-discover-scroll-cue 1.8s 3 ease-in-out;
}

#slider1-4 {
  scroll-margin-top: 60px;
}

#home-slides .carousel-inner {
  background: #081632;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

#home-slides .carousel-inner[data-dragging] {
  cursor: grabbing;
  user-select: none;
}

#home-slides .carousel-inner[data-dragging] .carousel-item.active {
  transform: translateX(var(--slide-drag-x, 0px));
  transition: none;
}

@keyframes home-discover-scroll-cue {
  45% { transform: translateY(0.45rem); }
  80% { transform: translateY(0); }
}

@media (max-width: 600px) {
  .home-discover__content {
    grid-template-rows: auto minmax(11rem, 1fr) auto;
  }

  .home-discover__products {
    --product-width: clamp(10rem, 55vw, 16rem);
  }

  .home-discover::before {
    inset: 40% -48% -35%;
  }

  .home-discover::after {
    bottom: -10%;
    width: 90vw;
  }
}

@media (max-height: 620px) {
  .home-discover__intro {
    padding-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-discover__scroll-icon::before {
    animation: none;
  }

  #home-slides .carousel-item {
    transition: none;
  }
}
