.aptly-home-banner {
  width: 100%;
  font-family: "Poppins", sans-serif;
}

.aptly-home-banner__inner {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background-color: #000a18;
}

.aptly-home-banner__inner::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 0;
  background: radial-gradient(ellipse 57% 57% at 50% 50%, #041d31 0%, #000a18 100%);
  transform: rotate(-4.52deg);
  pointer-events: none;
}

.aptly-home-banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  pointer-events: none;
}

.aptly-home-banner__overlay .site-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

.aptly-home-banner__grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  gap: 24px;
}

.aptly-home-banner__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  flex: 0 0 50%;
  max-width: 50%;
  align-self: center;
  color: var(--color-inverse);
  pointer-events: auto;
}

/* Pushes the text block to the right half when there is no illustration column */
.aptly-home-banner__text--right {
  margin-left: auto;
  align-items: flex-end;
  text-align: right;
}

.aptly-home-banner:not(.aptly-home-banner--no-illustration) .aptly-home-banner__text--right {
  margin-left: 0;
}

@media (min-width: 1921px) {
  .aptly-home-banner__text {
    flex-basis: 60%;
    max-width: 60%;
  }
}

.aptly-home-banner__illustration {
  display: flex;
  justify-content: flex-end;
  align-self: stretch;
  min-width: 0;
  pointer-events: none;
}

.aptly-home-banner__illustration--inside {
  position: relative;
  z-index: 1;
}

.aptly-home-banner__illustration--outside {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 12;
  width: min(48vw, 820px);
  max-height: 100%;
  padding: 0;
}

.aptly-home-banner__illustration--default {
  align-self: center;
  align-items: center;
}

.aptly-home-banner__illustration--bottom {
  align-self: stretch;
  align-items: center;
  justify-content: flex-end;
  padding-top: 0;
  padding-bottom: 48px;
}

.aptly-home-banner__illustration--bottom_right {
  align-self: stretch;
  align-items: flex-end;
  justify-content: flex-end;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 0;
}

.aptly-home-banner__illustration--outside.aptly-home-banner__illustration--bottom,
.aptly-home-banner__illustration--outside.aptly-home-banner__illustration--bottom_right {
  align-self: auto;
  justify-content: flex-end;
  padding: 0;
}

.aptly-home-banner__illustration--outside.aptly-home-banner__illustration--bottom {
  align-items: center;
}

.aptly-home-banner__illustration--outside.aptly-home-banner__illustration--bottom_right {
  align-items: flex-end;
}

.aptly-home-banner__illustration--bottom .aptly-home-banner__illustration-img {
  object-position: center bottom;
  transform-origin: center bottom;
}

.aptly-home-banner__illustration--bottom_right .aptly-home-banner__illustration-img {
  object-position: right bottom;
  transform-origin: right bottom;
}

.aptly-home-banner__illustration-img {
  --aptly-home-banner-image-scale: 1;
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 560px);
  object-fit: contain;
  object-position: right center;
  transform: scale(1);
  transform-origin: right center;
}

.aptly-home-banner__illustration--default .aptly-home-banner__illustration-img {
  object-position: right center;
}

.aptly-home-banner__illustration--default {
  min-height: 360px;
}
@media (min-width: 1025px) {
  .aptly-home-banner__illustration-img {
    flex: 1 1 auto;
  }
}

@media (min-width: 1921px) {
  .aptly-home-banner__illustration-img {
    transform: scale(var(--aptly-home-banner-image-scale));
  }

  .aptly-home-banner__illustration--outside.aptly-home-banner__illustration--bottom,
  .aptly-home-banner__illustration--outside.aptly-home-banner__illustration--bottom_right {
    width: min(72vw, 1360px);
  }

  .aptly-home-banner__illustration--outside.aptly-home-banner__illustration--bottom
    .aptly-home-banner__illustration-img,
  .aptly-home-banner__illustration--outside.aptly-home-banner__illustration--bottom_right
    .aptly-home-banner__illustration-img {
    max-height: min(98vh, 1040px);
  }
}

.aptly-home-banner__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: auto;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.aptly-home-banner__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease,
    width 0.25s ease;
}

.aptly-home-banner__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.aptly-home-banner__dot--active {
  /* background-color: var(--color-accent); */
  width: 24px;
  border-radius: 100px;
  transform: none;
}

.aptly-home-banner__scroll-wrap {
  position: absolute;
  bottom: 8%;
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
}

.aptly-home-banner__scroll-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 90px;
}

.aptly-home-banner__scrolldown {
  position: relative;
  width: 30px;
  height: 50px;
  border: 2px solid var(--color-inverse);
  border-radius: 50px;
}

.aptly-home-banner__scrolldown::before {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background-color: var(--color-inverse);
  border-radius: var(--radius-full);
  animation: aptly-home-banner-scrolldown 2s infinite;
}

@keyframes aptly-home-banner-scrolldown {
  0% {
    opacity: 0;
    height: 6px;
  }
  40% {
    opacity: 1;
    height: 10px;
  }
  80% {
    transform: translate(0, 20px);
    height: 10px;
    opacity: 0;
  }
  100% {
    height: 3px;
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .aptly-home-banner__illustration--outside {
    display: none !important;
  }

  .aptly-home-banner__illustration--inside[hidden] {
    display: flex !important;
  }

  .aptly-home-banner__inner {
    min-height: 100svh;
    height: auto;
  }

  .aptly-home-banner__overlay .site-wrap {
    justify-content: space-between;
    padding-top: 72px;
    padding-bottom: 96px;
    padding-left: 0;
    padding-right: 0;
  }

  .aptly-home-banner__grid {
    flex-direction: column-reverse;
    align-items: stretch;
    justify-content: center;
    min-height: 0;
    gap: 20px;
  }

  .aptly-home-banner__text,
  .aptly-home-banner__text--right {
    flex-basis: auto;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    align-items: center;
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
  }

  .aptly-home-banner__illustration,
  .aptly-home-banner__illustration--inside,
  .aptly-home-banner__illustration--outside,
  .aptly-home-banner__illustration--default,
  .aptly-home-banner__illustration--bottom,
  .aptly-home-banner__illustration--bottom_right {
    position: static;
    right: auto;
    bottom: auto;
    width: 100%;
    align-self: center;
    align-items: center;
    justify-content: center;
    min-height: clamp(220px, 34vh, 360px);
  }

  .aptly-home-banner__illustration-img {
    object-position: center;
  }

  .aptly-home-banner__illustration--bottom_right {
    align-items: flex-end;
    justify-content: flex-end;
  }

  .aptly-home-banner__illustration--bottom_right .aptly-home-banner__illustration-img {
    object-position: right bottom;
  }

  .aptly-home-banner__dots {
    bottom: 28px;
  }

  .aptly-home-banner__scroll-wrap {
    display: none;
  }

  .aptly-home-banner__illustration--bottom_right {
    margin-right: -40px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .aptly-home-banner__illustration-img {
    max-width: 100%;
    max-height: 80%;
  }
}

@media (max-width: 768px) {
  .aptly-home-banner__overlay .site-wrap {
    padding-top: 56px;
    padding-bottom: 84px;
  }

  .aptly-home-banner__grid {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .aptly-home-banner__overlay .site-wrap {
    padding-top: 80px;
    padding-bottom: 76px;
  }

  .aptly-home-banner__text,
  .aptly-home-banner__text--right {
    padding-left: 16px;
    padding-right: 16px;
  }

  .aptly-home-banner__illustration:not(.aptly-home-banner__illustration--bottom_right) {
    padding-left: 16px;
    padding-right: 16px;
  }

  .aptly-home-banner__illustration-img {
    max-width: 80%;
    max-height: 300px;
  }

  .aptly-home-banner__dots {
    bottom: 24px;
    padding: 8px 12px;
    gap: 8px;
  }

  .aptly-home-banner__dot {
    width: 6px;
    height: 6px;
  }

  .aptly-home-banner__dot--active {
    width: 18px;
  }
}
