/* Background-image homepage hero.
 * White carries the information layer, black carries emphasis,
 * and grey is restricted to borders and separators.
 */
.home-hero.home-hero-background {
  position: relative;
  isolation: isolate;
  min-height: min(720px, calc(100vh - 78px));
  padding: 46px 0 !important;
  border-bottom: 1px solid #dedede;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 56%,
      rgba(255, 255, 255, 0.04) 72%,
      rgba(255, 255, 255, 0.12) 100%
    ),
    url('/images/web.webp') left center / min(1100px, calc(100% - 420px)) auto no-repeat,
    #ffffff !important;
}

.home-hero-stage {
  display: flex;
  min-height: 620px;
  align-items: flex-end;
  justify-content: flex-end;
}

.home-hero-information {
  width: min(500px, 100%);
  margin: 0 0 12px;
  padding: 28px;
  border: 1px solid #d5d5d5;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.045);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.home-hero-heading-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.home-avatar-card {
  width: 96px;
  overflow: hidden;
  margin: 0;
  border: 1px solid #d2d2d2;
  border-radius: 18px;
  background: #fff;
}

.home-avatar-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.home-hero-heading {
  min-width: 0;
}

.home-hero-information .eyebrow {
  margin-bottom: 10px;
  color: #000 !important;
  font-size: 0.66rem;
}

.home-hero-information .home-identity {
  display: block;
}

.site-body .home-hero-information h1 {
  margin: 0;
  color: #000 !important;
  font-size: clamp(2.25rem, 3.4vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.site-body .home-hero-information .home-chinese-name {
  margin: 8px 0 0;
  color: #000 !important;
  font-size: 0.96rem;
  letter-spacing: 0.17em;
}

.site-body .home-hero-information .home-role {
  margin: 22px 0 8px;
  color: #000 !important;
  font-size: 0.92rem;
  font-weight: 750;
}

.site-body .home-hero-information .home-introduction {
  max-width: none;
  margin: 0;
  color: #111 !important;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.48;
}

.home-hero-information .home-actions {
  margin-top: 22px;
}

.home-hero-information .home-actions a {
  min-height: 42px;
  padding-inline: 18px;
}

.home-hero-information .home-facts {
  grid-template-columns: 0.82fr 1fr 1.35fr;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #d9d9d9;
}

.home-hero-information .home-facts > div:last-child {
  grid-column: auto;
}

.home-hero-information .home-facts dt,
.home-hero-information .home-facts dd,
.home-hero-information .home-facts a {
  color: #111 !important;
}

.home-hero-information .home-facts dt {
  font-size: 0.58rem;
}

.home-hero-information .home-facts dd {
  font-size: 0.76rem;
}

/* Keep the two principal homepage section headings on one line on desktop. */
.home-section .section-heading h2 {
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  white-space: nowrap;
}

.section-heading-row > div {
  min-width: 0;
}

@media (max-width: 1040px) {
  .home-hero.home-hero-background {
    min-height: auto;
    padding: 42px 0 !important;
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 52%,
        rgba(255, 255, 255, 0.06) 74%,
        rgba(255, 255, 255, 0.16) 100%
      ),
      url('/images/web.webp') left center / min(900px, calc(100% - 330px)) auto no-repeat,
      #ffffff !important;
  }

  .home-hero-stage {
    min-height: 560px;
  }

  .home-hero-information {
    width: min(470px, 100%);
    margin-bottom: 4px;
    padding: 25px;
  }
}

@media (max-width: 760px) {
  .home-hero.home-hero-background {
    padding: min(390px, calc(47.9vw + 20px)) 0 42px !important;
    background:
      url('/images/web.webp') center top / 100% auto no-repeat,
      #ffffff !important;
  }

  .home-hero-stage {
    display: block;
    min-height: 0;
  }

  .home-hero-information {
    width: 100%;
    margin: 0;
    padding: 25px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: none;
  }

  .home-hero-heading-row {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 17px;
  }

  .home-avatar-card {
    width: 94px;
    border-radius: 17px;
  }

  .site-body .home-hero-information h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .site-body .home-hero-information .home-chinese-name {
    font-size: 0.96rem;
  }

  .site-body .home-hero-information .home-role {
    margin-top: 24px;
  }

  .home-hero-information .home-facts {
    grid-template-columns: 1fr;
  }

  .home-section .section-heading h2 {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .home-hero.home-hero-background {
    padding-top: calc(47.9vw + 18px) !important;
  }

  .home-hero-heading-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .home-avatar-card {
    width: 78px;
    border-radius: 14px;
  }

  .home-hero-information {
    padding: 21px;
  }
}