/* One chart surface runs behind the whole hero, including the headline and CTAs. */
.lp-hero--ascii {
  min-height: min(790px, calc(100svh - 88px));
  overflow: visible;
}

.lp-hero--ascii::after {
  display: none;
}

.lp-hero-ascii {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 550px;
}

.lp-hero-ascii-heading,
.lp-hero-ascii-bottom {
  position: relative;
  z-index: 2;
  width: min(100%, 670px);
}

.lp-hero--ascii .lp-hero-ascii-heading::before,
.lp-hero--ascii .lp-hero-ascii-bottom::before {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.lp-hero--ascii .lp-hero-ascii-heading::before {
  inset: -4rem -6rem -1.5rem;
  background: radial-gradient(ellipse at 29% 41%, rgba(3, 5, 4, .9), rgba(3, 5, 4, .52) 52%, transparent 80%);
}

.lp-hero--ascii .lp-hero-ascii-bottom::before {
  inset: -1rem -4rem -3rem;
  background: radial-gradient(ellipse at 30% 52%, rgba(3, 5, 4, .94), rgba(3, 5, 4, .62) 46%, transparent 82%);
}

.lp-hero--ascii .lp-hero-visual {
  top: 50%;
  right: -4%;
  bottom: auto;
  width: min(1020px, 76vw);
  height: min(680px, 81vh);
  transform: translateY(-50%);
}

.lp-ascii-chart {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 59% 79% at 53% 49%, #000 40%, rgba(0, 0, 0, .8) 55%, transparent 90%);
  mask-image: radial-gradient(ellipse 59% 79% at 53% 49%, #000 40%, rgba(0, 0, 0, .8) 55%, transparent 90%);
}

.lp-ascii-chart::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg,
    #030504 0%,
    rgba(3, 5, 4, .94) 14%,
    transparent 30%,
    transparent 75%,
    rgba(3, 5, 4, .7) 91%,
    #030504 100%
  );
}

.lp-ascii-chart canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.lp-hero--ascii .lp-hero-lede {
  max-width: 535px;
}

.lp-hero--ascii .lp-hero-ascii-bottom {
  margin-top: 3.25rem;
}

@media (max-width: 980px) {
  .lp-hero--ascii .lp-hero-visual {
    right: -16%;
    width: 100vw;
  }
}

@media (max-width: 600px) {
  .lp-hero--ascii {
    align-items: stretch;
    min-height: clamp(660px, calc(100svh - 64px), 760px);
    padding: 2.35rem 0 1.5rem;
  }

  .lp-hero-ascii {
    flex: 1;
    justify-content: space-between;
    min-height: 0;
  }

  .lp-hero-ascii-heading,
  .lp-hero-ascii-bottom {
    width: 100%;
  }

  .lp-hero--ascii .lp-hero-ascii-heading::before {
    inset: -1.25rem -1rem -1.5rem;
    background: linear-gradient(180deg, rgba(3, 5, 4, .97), rgba(3, 5, 4, .84) 58%, transparent);
  }

  .lp-hero--ascii .lp-hero-ascii-bottom::before {
    inset: -5rem -1rem -4rem;
    background: linear-gradient(180deg,
      transparent 0,
      rgba(3, 5, 4, .12) 25px,
      rgba(3, 5, 4, .5) 55px,
      rgba(3, 5, 4, .86) 80px,
      rgba(3, 5, 4, .8) 55%,
      rgba(3, 5, 4, .64) 78%,
      #030504 100%
    );
  }

  .lp-hero--ascii .lp-hero-visual {
    position: absolute;
    z-index: 1;
    inset: -2.35rem -1rem -4rem;
    width: auto;
    height: auto;
    margin: 0;
    transform: none;
  }

  .lp-hero--ascii .lp-ascii-chart {
    -webkit-mask-image: radial-gradient(ellipse 92% 75% at 50% 49%, #000 48%, rgba(0, 0, 0, .84) 77%, transparent 100%);
    mask-image: radial-gradient(ellipse 92% 75% at 50% 49%, #000 48%, rgba(0, 0, 0, .84) 77%, transparent 100%);
  }

  .lp-hero--ascii .lp-ascii-chart::after {
    background: linear-gradient(180deg, #030504, rgba(3, 5, 4, .35) 12%, transparent 27%, transparent 88%, rgba(3, 5, 4, .25) 96%, #030504);
  }

  .lp-hero--ascii .lp-hero-ascii-bottom {
    margin-top: 2rem;
  }

  .lp-hero--ascii h1 {
    font-size: clamp(2.4rem, 10.8vw, 4rem);
  }

  .lp-hero--ascii .lp-hero-lede {
    max-width: 34rem;
    margin-top: 0 !important;
    font-size: .92rem;
    line-height: 1.7;
  }

  .lp-hero--ascii .lp-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
    gap: .5rem;
    margin-top: 1.5rem;
  }

  .lp-hero--ascii .lp-hero-actions .lp-button {
    width: 100%;
    min-width: 0;
    min-height: 60px;
    padding: .65rem .55rem;
    justify-content: center;
    gap: .45rem;
    font-size: clamp(.72rem, 3.1vw, .74rem);
    line-height: 1.2;
    text-align: center;
  }

  .lp-hero--ascii .lp-button-arrow {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
  }

  .lp-hero--ascii .lp-button-quiet span {
    flex: 0 0 auto;
  }

  .lp-hero--ascii .lp-button-quiet {
    background: rgba(3, 5, 4, .68);
  }
}
