.home-slider {
  position: relative;
  height: clamp(500px, 68vh, 650px);
  overflow: hidden;
  isolation: isolate;
  color: white;
}

.home-slider-media,
.home-slider-bg {
  position: absolute;
  inset: 0;
}

.home-slider-media {
  z-index: -2;
  background: #180530;
}

.home-slider-bg {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 420ms ease;
}

.home-slider-bg.is-active {
  opacity: 1;
}

.home-slider-bg-illustration {
  background-position: center 42%;
}

.home-slider-bg-publicity {
  background-position: center 34%;
}

.home-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(24, 5, 48, 0.78) 0%, rgba(24, 5, 48, 0.52) 38%, rgba(24, 5, 48, 0.14) 100%),
    linear-gradient(0deg, rgba(4, 20, 31, 0.62) 0%, rgba(4, 20, 31, 0.04) 45%, rgba(4, 20, 31, 0.32) 100%);
}

.home-slider-content {
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 40px 98px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(280px, 0.74fr);
  grid-template-rows: auto auto auto;
  align-items: start;
  gap: 12px 56px;
  text-align: left;
}

.home-slider-kicker {
  grid-column: 1;
  justify-self: start;
  align-self: end;
  transform: translateY(118px);
  padding: 9px 15px 6px;
  border-radius: 999px;
  background-color: #8041db;
  color: #fff894;
  -webkit-text-fill-color: #fff894;
  font-family: "Dank Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-slider-main {
  display: contents;
}

.home-slider h1 {
  grid-column: 1;
  grid-row: 2;
  max-inline-size: 16ch;
  min-height: 70px;
  margin: 118px 0 0;
  background: linear-gradient(135deg, #8041db 0%, hsl(200 100% 60%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-family: "Special Elite", system-ui;
  font-size: 54px;
  line-height: 1.08;
  text-align: left;
}

.home-slider h1.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.8em;
  margin-left: 0.08em;
  background: #fff894;
  vertical-align: -0.05em;
  animation: home-slider-cursor 0.75s step-end infinite;
}

@keyframes home-slider-cursor {
  50% {
    opacity: 0;
  }
}

.home-slider p {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  max-width: 440px;
  min-height: 132px;
  margin: 0;
  transform: translateY(6px);
  padding: 10px 11px 9px 12px;
  border-left: 4px solid #8041db;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.65);
  font-family: "Dank Mono", ui-monospace, monospace;
  font-size: 1.36rem;
  line-height: 1.45;
  text-align: left;
}

.home-slider-copy-text {
  background: radial-gradient(
     hsl(200 100% 60%),
     hsl(280, 91%, 42%)
  ) fixed;
  background: conic-gradient(
    hsl(280, 91%, 42%),
    hsl(200 100% 60%),
    hsl(61, 92%, 56%)
  ) fixed;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.home-slider-previews {
  grid-column: 2;
  grid-row: 1 / 4;
  display: contents;
  max-width: 440px;
}

.home-slider-preview {
  grid-column: 2;
  width: 100%;
  max-width: 440px;
  height: 112px;
  transform: translateY(6px);
  border: 0;
  border-left: 2px solid rgba(128, 65, 219, 0.55);
  border-radius: 12px;
  padding: 12px 13px 12px 15px;
  background: rgba(0, 0, 0, 0.56);
  color: rgba(255, 255, 255, 0.78);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-family: "Dank Mono", ui-monospace, monospace;
  overflow: hidden;
  text-align: left;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.home-slider-preview--previous {
  grid-row: 1;
  align-self: end;
  transform: translateY(22px);
}

.home-slider-preview--next {
  grid-row: 3;
  align-self: start;
  transform: translateY(-10px);
}

.home-slider-preview:hover,
.home-slider-preview:focus-visible {
  background: rgba(0, 0, 0, 0.65);
  border-color: #8041db;
  color: #fff894;
  -webkit-text-fill-color: #fff894;
  outline: none;
}

.home-slider-preview.is-active {
  display: none;
}

.home-slider-preview:nth-child(n+3) {
  display: none;
}

.home-slider-preview-kicker {
  display: block;
  margin-bottom: 3px;
  color: #8041db;
  -webkit-text-fill-color: #8041db;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.home-slider-preview-title {
  display: block;
  font-family: "Special Elite", system-ui;
  font-size: 1.16rem;
  line-height: 1.2;
}

.home-slider-preview-copy {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #fffde8;
  -webkit-text-fill-color: #fffde8;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.82;
  transition: opacity 180ms ease;
}

.home-slider-preview:hover .home-slider-preview-copy,
.home-slider-preview:focus-visible .home-slider-preview-copy {
  opacity: 1;
}

.home-slider-controls {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(24, 5, 48, 0.5);
}

.home-slider-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 248, 148, 0.55);
  border-radius: 50%;
  background: rgba(128, 65, 219, 0.84);
  color: white;
  -webkit-text-fill-color: white;
  cursor: pointer;
  font-family: "Special Elite", system-ui;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.home-slider-arrow:hover,
.home-slider-arrow:focus-visible {
  background: #fff894;
  color: #8041db;
  -webkit-text-fill-color: #8041db;
  transform: translateY(-1px);
  outline: none;
}

.home-slider-count {
  min-width: 72px;
  color: #fff894;
  -webkit-text-fill-color: #fff894;
  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  font-family: "Dank Mono", ui-monospace, monospace;
  font-size: 0.95rem;
  text-align: center;
}

.home-slider-count span {
  background: none;
  color: #fff894;
  -webkit-text-fill-color: #fff894;
}

@media (max-width: 900px) {
  .home-slider {
    height: 660px;
  }

  .home-slider::before {
    background:
      linear-gradient(0deg, rgba(24, 5, 48, 0.9) 0%, rgba(24, 5, 48, 0.46) 54%, rgba(24, 5, 48, 0.42) 100%),
      linear-gradient(90deg, rgba(24, 5, 48, 0.74) 0%, rgba(24, 5, 48, 0.14) 100%);
  }

  .home-slider-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    align-content: end;
    padding: 52px 22px 46px;
    gap: 18px;
  }

  .home-slider-kicker,
  .home-slider h1,
  .home-slider p,
  .home-slider-previews,
  .home-slider-controls {
    grid-column: 1;
  }

  .home-slider-kicker {
    transform: none;
  }

  .home-slider h1 {
    grid-row: auto;
    max-inline-size: 16ch;
    min-height: auto;
    margin-top: 0;
    font-size: clamp(2.25rem, 7.8vw, 3.15rem);
  }

  .home-slider p {
    grid-row: auto;
    max-width: 620px;
    min-height: auto;
    transform: none;
    padding: 18px 20px 16px 20px;
  }

  .home-slider-controls,
  .home-slider-previews {
    grid-row: auto;
  }

  .home-slider-controls {
    margin-top: 0;
  }

  .home-slider-previews {
    width: 100%;
    max-width: 620px;
    display: grid;
    gap: 7px;
    grid-auto-rows: 92px;
  }

  .home-slider-preview,
  .home-slider-preview--previous,
  .home-slider-preview--next {
    grid-column: 1;
    grid-row: auto;
    align-self: auto;
    transform: none;
  }
}

@media (max-width: 900px) {
  .home-slider {
    height: 560px;
  }

  .home-slider-bg {
    background-position: center;
  }

  .home-slider-bg-illustration {
    background-position: center 28%;
  }

  .home-slider-content {
    align-content: end;
    justify-items: center;
    padding: 40px 18px 34px;
    gap: 14px;
    text-align: center;
  }

  .home-slider::before {
    background:
      linear-gradient(0deg, rgba(24, 5, 48, 0.94) 0%, rgba(24, 5, 48, 0.68) 45%, rgba(24, 5, 48, 0.28) 100%),
      linear-gradient(90deg, rgba(4, 20, 31, 0.5) 0%, rgba(4, 20, 31, 0.08) 100%);
  }

  .home-slider-kicker {
    justify-self: center;
    font-size: 0.78rem;
  }

  .home-slider h1 {
    max-inline-size: 16ch;
    margin: 0 auto;
    background: linear-gradient(135deg, #8041db 0%, #b06cff 52%, hsl(200 100% 60%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-size: clamp(2rem, 8.6vw, 2.7rem);
    line-height: 1.05;
    text-align: center;
  }

  .home-slider p {
    width: 100%;
    max-width: 440px;
    padding: 14px 16px 12px;
    border-left: 0;
    border-top: 3px solid #8041db;
    border-radius: 8px;
    background: rgba(24, 5, 48, 0.84);
    font-size: 1.08rem;
    line-height: 1.42;
    text-align: center;
  }

  .home-slider-copy-text {
    background: none;
    color: #f5ecff;
    -webkit-text-fill-color: #f5ecff;
  }

  .home-slider-previews {
    display: none;
  }

  .home-slider-preview {
    height: 48px;
    border-radius: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .home-slider-preview-title {
    font-size: 1rem;
  }

  .home-slider-preview-copy {
    display: none;
  }

  .home-slider-controls {
    justify-self: center;
    background: rgba(24, 5, 48, 0.72);
  }

  .home-slider-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-slider-bg,
  .home-slider-arrow,
  .home-slider h1.is-typing::after {
    transition: none;
    animation: none;
  }
}
