/* Homepage company introduction. */
.home-about {
  --about-artwork-width: clamp(280px, 19vw, 352px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}

.home-about-container {
  position: relative;
}

.home-about-heading {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

.home-about-heading > .subtitle {
  font-family: var(--font-primary);
  letter-spacing: 0;
}

.home-about-title-group {
  position: relative;
  isolation: isolate;
}

.home-about-heading h2.title {
  margin: 0;
  font-family: inherit;
  text-wrap: balance;
}

.home-about-heading .home-about-description {
  max-width: min(100%, 720px);
  margin: 20px 0 0;
  text-wrap: balance;
}

.home-about-watermark {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #edf1f8;
  font-family: Arial, sans-serif;
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.home-about-content {
  position: relative;
}

.home-about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--about-artwork-width);
  align-items: start;
  gap: 32px;
  margin-bottom: 0;
}

.home-about-intro-copy {
  min-width: 0;
}

.home-about-artwork {
  position: relative;
  align-self: stretch;
  min-height: 0;
  width: 100%;
  margin: 0;
}

.home-about-illustration {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1029 / 705;
  object-fit: contain;
  opacity: 0.9;
}

.home-about-copy {
  position: relative;
  color: #555b65;
  font-size: 18px;
  line-height: 2.1;
  overflow-wrap: break-word;
}

.home-about-copy p {
  margin: 0 0 clamp(28px, 2vw, 40px);
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.home-about-copy .home-about-lead {
  width: 100%;
  margin-bottom: 28px;
  color: #15191f;
  font-size: clamp(20px, 1.75vw, 22px);
  font-weight: 600;
  line-height: 1.8;
  text-wrap: wrap;
}

.home-about-copy .home-about-expertise {
  width: 100%;
  margin-bottom: clamp(28px, 2vw, 40px);
}

.home-about-copy p:last-of-type {
  margin-bottom: 0;
}

.home-about-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 48px;
  padding: 8px 0;
  margin-top: 24px;
  color: #4759cf;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
}

.home-about-contact-label {
  min-width: 0;
  padding-bottom: 3px;
  border-bottom: 1px solid #cbd4e8;
  background: linear-gradient(100deg, #147ebd, #6650cb 60%, #d73f67);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: border-color 180ms ease;
}

.home-about-contact svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
  transition: transform 180ms ease;
}

.home-about-contact:hover,
.home-about-contact:focus-visible {
  color: var(--color-primary);
}

.home-about-contact:hover .home-about-contact-label {
  border-color: var(--color-primary);
}

.home-about-contact:hover svg {
  transform: translate(2px, -2px);
}

.home-about-contact:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--color-primary);
  outline-offset: 5px;
}

@media (min-width: 992px) {
  .home-about-illustration {
    position: absolute;
    inset: 0 auto 0 0;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-position: left center;
  }

}

@media (min-width: 1200px) {
  .home-about-illustration {
    /* Use the outer whitespace to match the text height without stretching. */
    max-width: calc(100% + max(0px, (100vw - 1260px) / 2 - 24px));
  }
}

@media (min-width: 1600px) {
  .home-about-intro {
    column-gap: 40px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .home-about-intro {
    row-gap: 24px;
  }

  .home-about-intro-copy {
    display: contents;
  }

  .home-about-copy .home-about-lead {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .home-about-intro-copy p:not(.home-about-lead) {
    grid-column: 1;
    margin-bottom: 0;
  }

  .home-about-artwork {
    grid-column: 2;
    grid-row: 2 / 5;
  }
}

@media (max-width: 991px) {
  .home-about-heading {
    margin-bottom: 40px;
  }

  .home-about-heading .home-about-description {
    max-width: 100%;
  }

  .home-about-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .home-about-artwork {
    width: min(78%, 400px);
    margin: 0 auto;
  }

  .home-about-copy .home-about-lead,
  .home-about-copy .home-about-expertise {
    width: 100%;
  }

  .home-about-copy .home-about-lead {
    margin-bottom: 28px;
  }
}

@media (max-width: 767px) {
  .home-about-artwork {
    width: min(86%, 400px);
  }
}

@media (max-width: 575px) {
  .home-about-heading {
    margin-bottom: 32px;
  }

  .home-about-watermark {
    font-size: 48px;
  }

  .home-about-artwork {
    width: min(92%, 340px);
  }

  .home-about-copy {
    font-size: 16px;
    line-height: 1.95;
  }

  .home-about-copy .home-about-lead {
    font-size: 19px;
  }

  .home-about-contact {
    gap: 10px;
    margin-top: 24px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-about-contact-label,
  .home-about-contact svg {
    transition: none;
  }
}
