.hero-section {
  height: 100vh;
  width: 100vw;
  max-height: 900px;
  background-image: url(../../../assets/ring-star-set.svg);
  background-repeat: no-repeat;
  background-size: auto;
  background-position: center -120px;
  position: relative;

  .main-logo {
    position: absolute;
    left: 50px;
    top: 40px;
    width: 30px;
  }

  /* visually hide noise asset in dom */
  .noise-filter-visually-hidden {
    display: none;
  }

  /* gradient spiral background ring */
  &:before {
    position: absolute;
    content: "";
    inset: 0;
    background: radial-gradient(
      50% 50% at 50% 50%,
      #ffffff 0,
      rgba(255, 255, 255, 0) 100%
    );
    opacity: 0.08;
    transform: rotate(45deg);
    width: 100%;
    top: -180px;
    z-index: 0;
    max-width: 1800px;
    margin-inline: auto;
  }

  /* nosie filter implementation */
  &::after {
    position: absolute;
    content: "";
    inset: 0;
    filter: url("#noiseFilter");
    mix-blend-mode: soft-light;
    z-index: 2;
  }
}

.hero-content {
  width: min(100% - 4rem);
  max-width: 800px;
  margin-inline: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-title h1 {
  font-weight: 600;
  letter-spacing: -2px;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 72px;
  text-align: center;
  color: var(--main-text-color);
  margin-bottom: 30px;
  white-space: nowrap;

  @media only screen and (max-width: 768px) {
    line-height: 48px;
  }

  .word-squeeze {
    display: inline-flex;
    border: 2px solid #666666;
    padding: 0 2px;
    position: relative;

    .dot {
      display: inline-block;
      width: 6px;
      height: 6px;
      background: #fff;
      position: absolute;
      border: 1px solid #666666;

      &:nth-of-type(1) {
        top: -4px;
        left: -4px;
      }
      &:nth-of-type(2) {
        top: -4px;
        right: -4px;
      }
      &:nth-of-type(3) {
        bottom: -4px;
        left: -4px;
      }
      &:nth-of-type(4) {
        bottom: -4px;
        right: -4px;
      }
    }
  }

  .stylish-em-comma {
    font-family: Georgia, serif;
  }

  .animated-word {
    display: inline-block;
    position: relative;
    bottom: -2px;

    svg {
      width: 2.6em;
      /*keeps size relative to the container's font size in this case */
      height: 100%;
    }

    span {
      position: absolute;
      top: 0;
      left: 0;
      visibility: hidden;
    }
  }

  .word-width {
    display: inline-block;
    position: absolute;
    width: fit-content;

    font-size: 12px;
    letter-spacing: -1px;
    line-height: 16px;
    padding: 1px 4px;
    border-radius: 3px;
    background: #666666;
    left: 50%;
    top: -24px;
    transform: translateX(-50%);
    z-index: 10;
  }
}

.hero-subtitle {
  text-align: center;
  font-size: 20px;
  color: var(--subtitle-text-color);
  line-height: 30px;
  margin-bottom: 30px;
  max-width: 40ch;
  position: relative;
  z-index: 10;
}
