.about-page {
  background: var(--bg);
}

.site-nav__link--active {
  color: #bdced4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45rem;
}

.about-section-shell {
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
}

.about-hero {
  width: 100%;
  height: 367px;
  overflow: hidden;
  background: #273331;
}

.about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}

.about-welcome {
  color: var(--cream);
  background: rgb(var(--color_cyan));
}

.about-welcome__inner {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1.4rem;
  min-height: 336px;
  padding-top: 4.2rem;
  padding-bottom: 4.2rem;
  text-align: center;
}

.about-welcome h1,
.about-story h2,
.about-work h2,
.about-education h2,
.about-expertise h2 {
  margin: 0;
  font-family: 'Comfortaa', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.05rem);
  font-weight: 400;
  line-height: 1.3;
}

.about-welcome p {
  max-width: 900px;
  margin: 0;
}

.about-story {
  position: relative;
  overflow: hidden;
  min-height: 732px;
  background: #f7f7f5;
}

.percepire-macos .about-story,
.percepire-video-fallback .about-story {
  background: #fff;
}

.percepire-macos .about-story__video,
.percepire-macos .about-story__overlay,
.percepire-video-fallback .about-story__video,
.percepire-video-fallback .about-story__overlay {
  display: none;
}

.about-story__video,
.about-story__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about-story__video {
  display: block;
  object-fit: cover;
}

.about-story__overlay {
  background: rgba(255, 254, 252, 0.18);
}

.about-story__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 732px;
  padding-top: 4.5rem;
  padding-bottom: 5.1rem;
  text-align: center;
}

.about-story h2,
.about-education h2,
.about-expertise h2 {
  color: rgb(var(--color_darkcyan));
}

.about-heading-rule {
  display: block;
  width: 124px;
  height: 3px;
  margin: 1.1rem auto 2rem;
  background: rgba(var(--color_cyan), 0.62);
}

.about-story__copy {
  display: grid;
  gap: 1.15rem;
  max-width: 900px;
}

.about-story__copy p,
.about-work__copy p,
.about-expertise__item p {
  margin: 0;
}

.about-work {
  color: var(--cream);
  background: rgb(var(--color_cyan));
}

.about-work__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding-top: 4.8rem;
  padding-bottom: 5rem;
}

.about-work__media h2 {
  color: var(--cream);
}

.about-heading-rule--light {
  width: 112px;
  height: 2px;
  margin: 1.05rem 0 1.7rem;
  background: rgba(255, 254, 252, 0.55);
}

.about-work__media img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 269 / 432;
  object-fit: cover;
}

.about-work__copy {
  display: grid;
  gap: 1.2rem;
}

.about-work__copy strong {
  font-weight: 500;
}

.about-education {
  padding: 4.8rem 24px 5rem;
  color: rgb(var(--color_darkcyan));
  background: #f8f6f2;
}

.about-education__inner {
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
}

.about-education__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
  text-align: left;
}

.about-education__item {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-height: 180px;
  padding: 1.8rem;
  background: #fff;
  border-left: 4px solid rgba(var(--color_cyan), 0.72);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  box-shadow: 0 14px 34px rgba(var(--color_darkcyan), 0.08);
}

.about-education__item h3,
.about-education__item p {
  margin: 0;
}

.about-education__item h3 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
}

.about-education__item p:not(.about-education__year) {
  color: var(--sage);
  font-size: 0.9rem;
  line-height: 1.65;
}

.about-education__year {
  width: fit-content;
  padding: 0.24rem 0.7rem;
  color: #fff;
  background: rgb(var(--color_cyan));
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.about-expertise {
  padding: 4.6rem 24px 5.2rem;
  background: var(--bg);
}

.about-expertise__inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  text-align: center;
}

.about-expertise__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.6rem, 3vw, 3rem);
  margin-top: 2.2rem;
}

.about-expertise__item {
  display: grid;
  grid-template-rows: minmax(3.2rem, auto) 204px auto;
  justify-items: center;
  gap: 1.2rem;
  color: rgb(42, 30, 22);
}

.about-expertise__item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.about-expertise__image-wrap {
  display: grid;
  place-items: center;
  height: 204px;
}

.about-expertise__image-wrap img {
  width: auto;
  max-width: 165px;
  max-height: 194px;
  object-fit: contain;
}

.about-expertise__item p {
  max-width: 260px;
  color: var(--sage);
  font-size: 0.86rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .about-work__inner {
    gap: 3.5rem;
  }

  .about-expertise__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem 2rem;
  }
}

@media (max-width: 720px) {
  .about-section-shell {
    width: calc(100% - 48px);
  }

  .about-hero {
    height: auto;
    aspect-ratio: 320 / 197;
  }

  .about-hero img {
    object-position: 57% center;
  }

  .about-welcome__inner {
    justify-items: start;
    padding-top: 2.8rem;
    padding-bottom: 3.2rem;
    text-align: left;
  }

  .about-welcome h1,
  .about-story h2,
  .about-work h2,
  .about-education h2,
  .about-expertise h2 {
    font-size: 26px;
  }

  .about-welcome p,
  .about-story__copy,
  .about-work__copy {
    font-size: 17px;
    line-height: 1.55;
  }

  .about-story__inner {
    justify-items: start;
    min-height: 0;
    padding-top: 3.2rem;
    padding-bottom: 3.6rem;
    text-align: left;
  }

  .about-heading-rule {
    width: min(220px, 80%);
    margin-left: 0;
    margin-right: 0;
  }

  .about-work__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 3.2rem;
    padding-bottom: 3.6rem;
  }

  .about-work__media img {
    max-width: none;
    height: min(125vw, 540px);
    object-position: center 34%;
  }

  .about-expertise {
    padding: 3.4rem 24px 4rem;
  }

  .about-education {
    padding: 3.5rem 24px 3.8rem;
  }

  .about-education__inner {
    text-align: left;
  }

  .about-education__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.4rem;
  }

  .about-education__item {
    min-height: 0;
    padding: 1.4rem;
  }

  .about-expertise__inner {
    text-align: left;
  }

  .about-expertise__grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0.5rem;
  }

  .about-expertise__item {
    position: relative;
    grid-template-columns: 92px 1fr;
    grid-template-rows: auto auto;
    justify-items: start;
    gap: 0.4rem 1.2rem;
    padding: 1.5rem 0;
  }

  .about-expertise__item::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: rgba(var(--color_cyan), 0.45);
    content: '';
  }

  .about-expertise__item:last-child::after {
    display: none;
  }

  .about-expertise__item h3 {
    align-self: end;
    font-size: 17px;
    font-weight: 400;
  }

  .about-expertise__image-wrap {
    grid-row: 1 / 3;
    width: 92px;
    height: 112px;
  }

  .about-expertise__image-wrap img {
    max-width: 82px;
    max-height: 108px;
  }

  .about-expertise__item p {
    max-width: none;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-story__video {
    visibility: hidden;
  }

  .about-story {
    background: url('../images/about/about-video-poster.jpg') center /
      cover no-repeat;
  }

  .percepire-macos .about-story,
  .percepire-video-fallback .about-story {
    background: #fff;
  }
}
