@font-face {
  font-family: "MG Wide Display";
  src: url("assets/type/wide-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "ZCOOL XiaoWei";
  src: url("assets/type/xiaowei-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+3000-303F, U+3400-9FFF, U+FF01-FF60;
}

:root {
  --display-font: "MG Wide Display", Bricolage, sans-serif;
  --display-weight: 510;
  --display-tracking: -.043em;
  --wordmark-tracking: -.030em;
  --wordmark-weight: 635;
}
html:lang(zh) {
  --display-font: "MG Wide Display", "ZCOOL XiaoWei", "Songti SC", "SimSun", serif;
  --display-weight: 400;
  --display-tracking: .015em;
  --wordmark-tracking: .085em;
  --wordmark-weight: 400;
}
.mast .brand, .footer-logo-zh {
  font-family: var(--display-font);
  font-weight: var(--wordmark-weight);
  letter-spacing: var(--wordmark-tracking);
  line-height: 1.18;
}
.mast .brand { font-size: 1.18rem; }
html:lang(zh) .mast .brand { font-size: 1.54rem; }
html:lang(zh) .footer-logo-zh { font-size: 1.34rem; font-weight: var(--wordmark-weight); }
.hero h1, .atlas .atlas-intro h1, .atlas .detail-heading h1,
section :is(.domain-heading,.section-intro,.research-layout,.team-heading) h2,
.partners #partner-title, .domain-grid .domain-copy h3, .atlas-grid .demo-card h2 {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
}
.hero h1 { font-size: clamp(3.6rem,6.35vw,6.05rem); line-height: 1.04; }
html:lang(zh) .hero h1 {
  font-size: clamp(3.6rem,6vw,6.2rem);
  line-height: 1.17;
  letter-spacing: .018em;
}
html:lang(zh) :is(.domain-copy h3,.demo-card h2) { line-height: 1.27; }
@media (min-width:701px) and (max-width:900px) {
  .hero h1 { font-size: clamp(2.75rem,6.15vw,3.55rem); }
  html:lang(zh) .hero h1 { font-size: clamp(3rem,6.1vw,3.5rem); }
}
@media (max-width:700px) {
  .mast .brand { font-size: 1.02rem; }
  html:lang(zh) .mast .brand { font-size: 1.36rem; }
  .hero h1 { font-size: clamp(2.48rem,11.55vw,4.7rem); }
  html:lang(zh) .hero h1 { font-size: clamp(2.65rem,9.3vw,4.25rem); }
}
@media (max-width:370px) {
  .mast .brand { font-size: .93rem; }
  html:lang(zh) .mast .brand { font-size: 1.27rem; }
}
