/* About-specific content inside the shared Projects-page shell. */
.about-page .decorative-background::before {
  background:
    linear-gradient(to right, rgba(7, 10, 17, 0.06), rgba(7, 10, 17, 0.90)),
    linear-gradient(to bottom, transparent 52%, rgba(4, 6, 10, 0.98)),
    url("../images/about-bg.jpg") left center / cover no-repeat;
}

.about-portrait {
  position: sticky;
  top: 190px;
  width: 100%;
  margin: 0;
  overflow: hidden;
  align-self: start;
}

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 951px) {
  .about-page .page-heading,
  .about-page .heading-panel {
    height: 160px;
  }

  .about-page .heading-panel {
    padding-bottom: 0;
  }

  .about-layout {
    padding-top: 22px;
  }

  .about-portrait {
    width: calc(100% + clamp(46px, 5vw, 76px) + clamp(36px, 5vw, 78px));
    margin-left: calc(-1 * clamp(46px, 5vw, 76px));
  }
}

.about-content {
  min-width: 0;
}

.about-card .about-intro {
  margin: 0 0 30px;
  color: #202228;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  font-weight: 550;
  line-height: 1.72;
}

.about-section {
  padding-top: 28px;
  border-top: 1px solid rgba(20, 21, 25, 0.14);
}

.about-section + .about-section {
  margin-top: 28px;
}

.about-card .about-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.16rem, 1.5vw, 1.4rem);
  line-height: 1.28;
}

.about-card .about-section p + p {
  margin-top: 12px;
}

.about-card .about-closing {
  margin: 34px 0 0;
  padding: 8px 0 8px 18px;
  border-left: 3px solid var(--pink);
  color: #1b1d22;
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  font-weight: 750;
  line-height: 1.55;
}

@media (max-width: 950px), (max-height: 520px) {
  .about-page .page-heading {
    position: relative;
    top: auto;
  }

  .about-portrait {
    position: relative;
    top: auto;
    width: min(100%, 790px);
    margin-inline: auto;
  }

  .about-content {
    width: min(100%, 790px);
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .about-page .decorative-background::before {
    background:
      linear-gradient(to right, rgba(7, 10, 17, 0.44), rgba(7, 10, 17, 0.72)),
      linear-gradient(to bottom, transparent 42%, rgba(4, 6, 10, 0.98)),
      url("../images/about-bg.jpg") left center / cover no-repeat;
  }

  .about-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .about-portrait,
  .about-content {
    width: 100%;
  }

  .about-card .about-intro {
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.68;
  }

  .about-section {
    padding-top: 24px;
  }

  .about-section + .about-section {
    margin-top: 24px;
  }

  .about-card .about-closing {
    margin-top: 28px;
    padding-left: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-portrait {
    position: relative;
    top: auto;
  }
}
