:root {
  --page-hero-paper: #f8f7f3;
  --page-hero-ink: #101a2f;
  --page-hero-muted: #6d7480;
  --page-hero-line: #cfd3d1;
}

.page-hero {
  --page-accent: #173b67;
  --page-accent-rgb: 23, 59, 103;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(circle at 76% 42%, rgba(var(--page-accent-rgb), .035), transparent 34%), var(--page-hero-paper);
  border-bottom: 1px solid var(--page-hero-line);
}

.page-hero__shell {
  position: relative;
  min-height: 226px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  align-items: center;
  padding-top: 28px;
  padding-bottom: 50px;
}

.page-hero__content,
.page-hero__meta { position: relative; z-index: 2; }

.page-hero__eyebrow { display: none; }

.page-hero__content::before {
  display: block;
  margin: 0 0 9px 2px;
  color: var(--page-accent);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.page-hero--research .page-hero__content::before { content: "Research focus"; }
.page-hero--members .page-hero__content::before { content: "Our team"; }
.page-hero--publications .page-hero__content::before { content: "Research output"; }
.page-hero--news .page-hero__content::before { content: "Lab updates"; }
.page-hero--equipment .page-hero__content::before { content: "Experimental platform"; }
.page-hero--gallery .page-hero__content::before { content: "Visual archive"; }
.page-hero--contact .page-hero__content::before { content: "Find us"; }
.page-hero--moire .page-hero__content::before { content: "Moiré physics"; }

.page-hero__title {
  margin: 0;
  color: var(--page-hero-ink);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.page-hero__subtitle {
  margin: 15px 0 0;
  color: #252d3a;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .1em;
}

.page-hero__breadcrumb {
  position: absolute;
  left: 0;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--page-hero-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}

.page-hero__breadcrumb a { color: inherit; text-decoration: none; }
.page-hero__breadcrumb a:hover,
.page-hero__breadcrumb a:focus-visible { color: var(--page-accent); }

.page-hero__breadcrumb-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--page-accent);
}

.page-hero__rule {
  position: absolute;
  right: 0;
  bottom: 9px;
  left: 0;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--page-accent-rgb), .52), rgba(var(--page-accent-rgb), .05));
  transform-origin: left center;
}

.page-hero__motif {
  position: absolute;
  z-index: 0;
  top: 12px;
  right: 0;
  bottom: 24px;
  width: min(55%, 700px);
  overflow: hidden;
  pointer-events: none;
  opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 94%, transparent);
}

.page-hero__motif::before,
.page-hero__motif::after { content: ""; position: absolute; inset: 0; }

.page-hero--research { --page-accent: #147f9f; --page-accent-rgb: 20, 127, 159; }
.page-hero--research .page-hero__motif { width: min(62%, 800px); }
.page-hero--research .page-hero__motif::before {
  inset: -3% 43% -3% -4%;
  background: url("../picture/page-hero/research-graphene-wave-v4.webp") right center / 124% auto no-repeat;
  opacity: .72;
  -webkit-mask-image: linear-gradient(90deg, #000 0 84%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0 84%, transparent 100%);
}
.page-hero--research .page-hero__motif::after {
  inset: -7% 0 -7% 61%;
  background: url("../picture/page-hero/research-band-structure.svg") center / contain no-repeat;
  opacity: .96;
  filter: contrast(1.3);
  -webkit-mask-image: linear-gradient(90deg, #000 0 96%, transparent);
  mask-image: linear-gradient(90deg, #000 0 96%, transparent);
}

.page-hero--members { --page-accent: #6255bf; --page-accent-rgb: 98, 85, 191; }
.page-hero--members .page-hero__motif::before {
  background: url("../picture/page-hero/members-network-beida-v2.png") center / contain no-repeat;
  opacity: .66;
}

.page-hero--publications { --page-accent: #173b67; --page-accent-rgb: 23, 59, 103; }
.page-hero--publications .page-hero__motif {
  top: 28px;
  right: 1%;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding-left: 16%;
  opacity: .52;
  transform: rotate(-3deg);
}
.page-hero--publications .page-hero__motif::before {
  background: repeating-linear-gradient(0deg, transparent 0 28px, rgba(23, 59, 103, .1) 29px 30px);
}
.page-hero__paper-title {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  color: rgba(23, 59, 103, .38);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero--news { --page-accent: #9b5638; --page-accent-rgb: 155, 86, 56; }
.page-hero__timeline {
  top: 28px;
  right: 3%;
  bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 9%;
}
.page-hero__timeline::before {
  top: 50%;
  right: 8%;
  left: 8%;
  height: 1px;
  background: rgba(155, 86, 56, .38);
}
.page-hero__timeline span,
.page-hero__timeline strong {
  position: relative;
  z-index: 1;
  padding: 38px 7px 0;
  color: rgba(155, 86, 56, .55);
  font: 400 13px/1 Georgia, serif;
}
.page-hero__timeline span::before,
.page-hero__timeline strong::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid var(--page-hero-paper);
  border-radius: 50%;
  background: rgba(155, 86, 56, .68);
  box-shadow: 0 0 0 1px rgba(155, 86, 56, .22);
  transform: translate(-50%, -50%);
}
.page-hero__timeline strong { color: #87462d; font-size: 17px; font-weight: 600; }
.page-hero__timeline strong::before { width: 12px; height: 12px; background: #9b5638; }

.page-hero--equipment { --page-accent: #356eac; --page-accent-rgb: 53, 110, 172; }
.page-hero--equipment .page-hero__motif::before {
  background: url("../picture/page-hero/equipment-optics-table.png") right center / contain no-repeat;
  opacity: .74;
}

.page-hero--gallery { --page-accent: #736a5d; --page-accent-rgb: 115, 106, 93; }
.page-hero--gallery .page-hero__motif::before {
  background: url("../picture/page-hero/gallery-group-sketch-v3.webp") center / contain no-repeat;
  opacity: .6;
}
.page-hero__photo {
  position: absolute;
  width: 146px;
  height: 116px;
  padding: 7px 7px 25px;
  background-color: #fdfcf8;
  background-repeat: no-repeat;
  background-position: center 7px;
  background-size: calc(100% - 14px) 82px;
  border: 1px solid rgba(82, 74, 63, .18);
  box-shadow: 0 7px 16px rgba(52, 44, 34, .14);
}
.page-hero__photo--one {
  right: 36%; top: 24%;
  background-image: url("../picture/gallery-optimized/thumb/activity-1.webp");
  transform: rotate(-8deg);
}
.page-hero__photo--two {
  right: 16%; top: 13%;
  background-image: url("../picture/gallery-optimized/thumb/2025spring/1.webp");
  transform: rotate(5deg);
}
.page-hero__photo--three {
  right: 3%; top: 34%;
  background-image: url("../picture/gallery-optimized/thumb/2025spring/9.webp");
  transform: rotate(-2deg);
}

.page-hero--contact { --page-accent: #3e7568; --page-accent-rgb: 62, 117, 104; }
.page-hero--contact .page-hero__motif::before {
  background: url("../picture/page-hero/contact-hankou-gate-v4.webp") center / contain no-repeat;
  opacity: .44;
}

.page-hero--moire { --page-accent: #5966c6; --page-accent-rgb: 89, 102, 198; }
.page-hero--moire .page-hero__motif::before {
  inset: 0;
  background: url("../picture/page-hero/moire-grid-cyan.svg") center / 96% 96% no-repeat;
  opacity: .6;
}
.page-hero--moire .page-hero__motif::after {
  inset: 0;
  background: url("../picture/page-hero/moire-grid-violet.svg") center / 96% 96% no-repeat;
  opacity: .56;
}

.page-hero__meta { justify-self: end; margin-right: clamp(24px, 8vw, 110px); }

@media (prefers-reduced-motion: no-preference) {
  .page-hero__content,
  .page-hero__meta { animation: pageHeroEnter .62s cubic-bezier(.22, .8, .25, 1) both; }
  .page-hero__motif { animation: pageHeroMotifEnter .85s ease-out both; }
  .page-hero__rule { animation: pageHeroRuleEnter .7s .12s ease-out both; }
}

@keyframes pageHeroEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pageHeroMotifEnter { from { opacity: 0; transform: translateX(18px); } }
@keyframes pageHeroRuleEnter { from { transform: scaleX(0); } }
@media (max-width: 991.98px) {
  .page-hero__shell {
    min-height: 190px;
    grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr);
    padding-top: 26px;
    padding-bottom: 44px;
  }
  .page-hero__title { font-size: clamp(42px, 7vw, 58px); }
  .page-hero__subtitle { font-size: 19px; }
  .page-hero__motif { width: 50%; opacity: .58; }
  .page-hero__photo { transform: scale(.82) rotate(var(--photo-rotate, 0deg)); }
  .page-hero__photo--one { --photo-rotate: -8deg; }
  .page-hero__photo--two { --photo-rotate: 5deg; }
  .page-hero__photo--three { --photo-rotate: -2deg; }
}

@media (max-width: 767.98px) {
  .page-hero__shell {
    min-height: 184px;
    display: block;
    padding-top: 36px;
    padding-bottom: 45px;
  }
  .page-hero__content::before {
    margin-bottom: 7px;
    font-size: 10px;
    letter-spacing: .17em;
  }
  .page-hero__title {
    max-width: calc(100% - 28px);
    font-size: clamp(33px, 10vw, 44px);
    line-height: 1;
    overflow-wrap: normal;
    word-break: keep-all;
  }
  .page-hero__subtitle {
    max-width: 74%;
    margin-top: 9px;
    font-size: 17px;
  }
  .page-hero__motif {
    top: 21px;
    right: 18px;
    bottom: 29px;
    width: 46%;
    opacity: .22;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 100%);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 100%);
  }
  .page-hero--research .page-hero__motif { width: 52%; }
  .page-hero__breadcrumb { left: 15px; bottom: 18px; gap: 7px; font-size: 9px; }
  .page-hero__rule { right: 15px; bottom: 10px; left: 15px; }
  .page-hero__meta { position: absolute; top: 72px; right: 0; margin: 0; }
  .page-hero--publications .page-hero__meta { top: auto; right: 0; bottom: 35px; }
  .page-hero--publications .page-hero__motif { display: none; }
  .page-hero__timeline { right: 12px; width: 48%; }
  .page-hero__timeline span:first-of-type { display: none; }
  .page-hero__photo { transform: scale(.62) rotate(var(--photo-rotate, 0deg)); }
  .page-hero__photo--one { right: 28%; }
  .page-hero__photo--two { right: 4%; }
  .page-hero__photo--three { display: none; }
}

@media (max-width: 420px) {
  .page-hero__title { font-size: clamp(31px, 9.5vw, 39px); }
  .page-hero__subtitle { font-size: 16px; }
}
