.about {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 10rem;
  gap: clamp(1rem, 2vw, 12.5rem);

  @media (max-width: 900px) {
    flex-direction: column-reverse;
    padding-inline: clamp(1rem, 5vw, 3rem);
  }
}

.about__facts-list {
  display: flex;
  position: relative;
  height: auto;
  flex-direction: column;
  justify-content: center;
  flex: 0 1 50%;
  min-width: 0;
  list-style: none;
  padding: 0;

  @media (max-width: 900px) {
    flex: 0 0 auto;
    width: 100%;
    align-items: center;
  }
}

.about__fact {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: min(37.5rem, 100%);
  aspect-ratio: 75 / 19;
  background-size: 100%;
  background-repeat: no-repeat;
  color: var(--base-color-bright);
  font-size: clamp(1rem, 2vw, 1.75rem);

  @media (max-width: 900px) {
    margin-top: 2rem;
    font-size: clamp(0.9rem, 4vw, 1.75rem);
  }

  &.about__fact--location {
    background-image: url(../assets/img/ripped-paper/about-paper-location.webp);
    aspect-ratio: 25 / 6;
    z-index: 3;
    rotate: -3deg;
  }

  &.about__fact--relocate {
    background-image: url(../assets/img/ripped-paper/about-paper-relocate.webp);
    margin-top: clamp(-1rem, -4.5vw, -1.875rem);
    z-index: 2;
  }

  &.about__fact--remote {
    background-image: url(../assets/img/ripped-paper/about-paper-remote.webp);
    margin-top: clamp(-1.5rem, -6vw, -2.5rem);
    z-index: 1;
    rotate: 3deg;
  }
}

.about__icon {
  width: clamp(1.25rem, 2.5vw, 2.5rem);
  height: auto;
  margin-right: clamp(0.3rem, 0.6vw, 0.625rem);
}

.about__main {
  display: flex;
  flex-direction: column;
  flex: 0 1 50%;
  min-width: 0;
}

.about__heading {
  display: flex;
  flex-direction: column;
}

.about__label {
  font-size: clamp(1.25rem, 2.25vw, 2.25rem);
  font-weight: 500;
}

.about__title {
  font-size: clamp(3.75rem, 7vw, 8rem);
  font-weight: bold;
  position: relative;
  display: inline-block;
  margin-top: 2rem;
  margin-bottom: 2rem;

  &::before {
    content: "";
    position: absolute;
    left: -30%;
    bottom: -1.5rem;
    width: 125%;
    height: 5.5rem;
    background-image: url("../assets/img/scribbles/underline.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform-origin: 24% center;
    animation: reveal-scale 4s ease-in-out infinite;

    @media (max-width: 900px) {
      left: -40%;
      width: 180%;
    }
  }

  @media (max-width: 900px) {
    font-size: clamp(3rem, 11vw, 6rem);
    align-self: flex-start;
  }
}

.about__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  & .about__action {
    align-self: flex-end;
    margin-top: 0.75rem;
    padding-right: 1rem;
  }

  & .about__text {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    hyphens: auto;
    line-height: 1.5;
    color: var(--base-color-dark);
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    padding-right: 1rem;
  }
}
