.about-page {
  display: block;
  min-height: 100vh;
  min-height: 100svh;
  background-color: #fff;
  background-image: url("../assets/about/about_page_background.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  --about-subpage-content-gap: 32px;
  --about-subpage-copy-gap: 8px;
  --about-subpage-heading-gap: min(1.1111vw, 16px);
  --about-subpage-heading-inset: min(13.1944vw, 190px);
  --about-subpage-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.about-page .global-header {
  position: relative;
  height: var(--portfolio-header-wide-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  background: transparent;
}

.about-page .header-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
}

.about-page .header-controls .language-control,
.about-page .floating-nav {
  grid-column: auto;
  justify-self: auto;
}

.about-page .floating-nav-about {
  flex: 0 0 auto;
  gap: 8px;
  font-weight: 400;
  color: #000000e5;
}

.about-page .floating-nav-about.is-current {
  background: #E8E8E8;
}

.about-page .floating-nav > .floating-nav-about {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  line-height: 24px;
  cursor: default;
}

.about-page .about-subpage-main {
  box-sizing: border-box;
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: 24px;
}

.about-page .about-subpage-main--bleed {
  padding-inline: 0;
}

.about-page .about-subpage-main--flow {
  padding-top: clamp(0px, calc(1.6667vw - 20px), 4px);
}

.about-page .about-subpage-heading {
  display: flex;
  flex-direction: column;
  gap: var(--about-subpage-heading-gap);
}

.about-page .about-subpage-copy {
  display: flex;
  flex-direction: column;
  gap: var(--about-subpage-copy-gap);
}

.about-page .about-subpage-title {
  max-width: 100%;
  font-family: var(--about-subpage-font-family);
  color: #000000e5;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
}

.about-page .about-subpage-description {
  max-width: 680px;
  font-family: var(--about-subpage-font-family);
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  text-align: left;
}

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

.about-page .about-back {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  font-family: var(--about-subpage-font-family);
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
}

.about-page .about-back img {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  opacity: .6;
}

@media (hover: hover) {
  .about-page .about-back:hover {
    color: rgba(0, 0, 0, .9);
  }

  .about-page .about-back:hover img {
    opacity: .9;
  }
}

.about-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 96px 0 64px;
  text-align: center;
}

.about-home-heading {
  margin-inline-start: var(--about-subpage-heading-inset);
}

.about-introduction {
  width: min(100%, 680px);
}

.about-introduction h1 {
  color: #000000e5;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.03em;
}

.about-introduction p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.about-entries {
  display: grid;
  width: min(100%, 1060px);
  grid-template-columns: repeat(4, minmax(0, 217px));
  justify-content: space-between;
  gap: 48px;
  margin-top: clamp(80px, 11vh, 112px);
}

.about-entry {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.about-entry-link {
  color: inherit;
  text-decoration: none;
}

.about-entry-visual {
  position: relative;
  width: min(100%, 217px);
  aspect-ratio: 217 / 152;
  flex: 0 0 auto;
}

.about-entry-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.about-entry-image-default {
  opacity: 1;
}

.about-entry-image-hover {
  opacity: 0;
}

.about-entry h2 {
  margin-top: 16px;
  color: #000000e5;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .about-entry:hover .about-entry-image-default {
    opacity: 0;
  }

  .about-entry:hover .about-entry-image-hover {
    opacity: 1;
  }
}

@media (width < 1200px) {
  .about-page .about-subpage-main {
    width: 100%;
    margin-inline: 0;
    padding-inline: 24px;
  }

  .about-page .about-subpage-main--flow {
    padding-top: 12px;
  }

  .about-page .about-subpage-heading {
    gap: 16px;
  }

  .about-page .about-subpage-title {
    white-space: normal;
  }

  .about-page .global-header {
    height: var(--portfolio-header-compact-height);
    border: 0;
    background: transparent;
  }

  .about-page .header-controls {
    gap: 4px;
  }

  .about-home-heading {
    margin-inline-start: 0;
  }

  .about-entries {
    width: min(100%, 470px);
    grid-template-columns: repeat(2, minmax(0, 217px));
    justify-content: space-between;
    column-gap: 32px;
    row-gap: 40px;
    margin-top: 72px;
  }
}

@media (width < 640px) {
  .about-page .global-header {
    gap: 0;
  }

  .about-page .floating-nav-about {
    gap: 4px;
  }

  .about-main {
    padding-bottom: 56px;
  }

  .about-entries {
    width: min(100%, 470px);
    column-gap: 20px;
    row-gap: 36px;
    margin-top: 56px;
  }

  .about-entry h2 {
    margin-top: 12px;
    font-size: 14px;
    line-height: 22px;
    white-space: normal;
  }
}

/* About home keeps its first-screen content in place and lets the footer follow it. */
.about-page[data-about-page="home"] #about-content > portfolio-footer {
  width: min(100%, 1060px);
  margin: 0 auto;
}
@media (width >= 1200px) {
  .about-page[data-about-page="home"] .about-main {
    min-height: calc(100svh - var(--portfolio-header-wide-height));
  }
}
@media (width < 1200px) {
  .about-page[data-about-page="home"] #about-content > portfolio-footer {
    width: min(100%, 470px);
  }
}
@media (width < 640px) {
  .about-page[data-about-page="home"] #about-content > portfolio-footer {
    margin-top: calc(64px - 56px);
    margin-bottom: 0;
  }
}
