@font-face {
  font-family: "HX Sans";
  src: url("./assets/hx/type/noto-sc-ui.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --hx-design-unit: calc(100vw / 1536);
  color-scheme: light;
  --hx-ink: #070e35;
  --hx-blue: #063de7;
  --hx-paper: #edf6ff;
  --hx-font: "HX Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--hx-font); color: var(--hx-ink); background: var(--hx-paper); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #0649ed; outline-offset: 3px; }
[hidden] { display: none !important; }
.hx-header {
  height: calc(72 * var(--hx-design-unit)); margin: 0 calc(13.9776 * var(--hx-design-unit)); padding: 0 calc(35.0208 * var(--hx-design-unit)) 0 calc(49.152 * var(--hx-design-unit));
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--hx-font); color: #080f35;
  background: linear-gradient(104deg, #eaf6ffdf, #cde2f6dc 22%, #d9ebfbf5 54%, #c0dcf5df 88%, #d4e8fae8);
  border: 1px solid #fcffff; border-radius: calc(46.08 * var(--hx-design-unit));
  box-shadow: inset 0 1px 3px #fff, inset 0 -3px 7px #9cbdddb3, 0 4px 16px #5f97cb38;
}
.hx-header a { text-decoration: none; white-space: nowrap; }
.hx-brand { display: inline-flex; gap: calc(15.9744 * var(--hx-design-unit)); align-items: center; font-size: calc(40.704 * var(--hx-design-unit)); letter-spacing: .015em; line-height: 1; font-weight: 800; }
.hx-brand span { transform: scaleX(1.15); transform-origin: left; }
.hx-brand img { width: calc(58.0608 * var(--hx-design-unit)); height: calc(49.152 * var(--hx-design-unit)); display: block; }
.hx-header nav { position: absolute; left: 35.72%; height: 100%; display: flex; align-items: stretch; gap: calc(84.48 * var(--hx-design-unit)); }
.hx-header nav a { display: grid; align-items: center; position: relative; font-size: calc(27.648 * var(--hx-design-unit)); font-weight: 650; }
.hx-header nav a[aria-current], .hx-header nav a:hover { color: #063de7; }
.hx-header nav a[aria-current]::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: 4%; height: calc(4.1472 * var(--hx-design-unit)); border-radius: 10px; background: currentColor; }
.hx-contact-link { display: inline-flex; align-items: center; justify-content: center; min-width: calc(162.048 * var(--hx-design-unit)); height: calc(50.688 * var(--hx-design-unit)); border-radius: calc(30.72 * var(--hx-design-unit)); color: #fff; font-size: calc(25.344 * var(--hx-design-unit)); font-weight: 680; background: linear-gradient(#5784ff,#1248ed 47%,#0035c8); }
.hx-contact-link:hover { filter: brightness(1.08); }
.hx-skip { position: absolute; top: 0; left: 1rem; transform: translateY(-150%); padding: .5rem 1rem; background: white; z-index: 3; }
.hx-skip:focus { transform: translateY(0); }

/* Keep the composition in proportion on wide, short desktop windows. */
@media(min-width: 1024px) {
  html { background: radial-gradient(ellipse at center, #f5faff 18%, #dceaf8 75%, #d0e2f3); }
  body {
    --hx-design-unit: min(calc(100vw / 1536), max(calc(1120px / 1536), calc(100svh / 1024)));
    width: calc(1536 * var(--hx-design-unit));
    margin-inline: auto;
    min-height: 100svh;
    box-shadow: 0 0 48px #709dc81c;
  }
}
@media(min-width:761px) {
  .hx-header {
    margin: 0; padding: 0 calc(48 * var(--hx-design-unit)) 0 calc(63 * var(--hx-design-unit));
    border: 0; border-radius: 0; box-shadow: none;
    background: url("./assets/hx/glass-nav.webp") center / 100% 100%;
  }
  .hx-header nav { left: 35.95%; gap: calc(85 * var(--hx-design-unit)); }
  .hx-header nav a { font-size: calc(27 * var(--hx-design-unit)); font-weight: 620; }
  .hx-header nav a[aria-current]::after { bottom: 7%; }
  .hx-brand { font-size: calc(41 * var(--hx-design-unit)); font-weight: 830; }
  .hx-brand span { transform: translate(calc(2 * var(--hx-design-unit)),calc(-2 * var(--hx-design-unit))) scaleX(1.14); }
  .hx-contact-link { font-size: calc(25 * var(--hx-design-unit)); }
}
@media(max-width:760px) {
  .hx-header { height: auto; margin: 5px 7px 0; padding: 8px 14px 2px; flex-wrap: wrap; border-radius: 19px; gap: 5px; }
  .hx-brand { gap: 8px; font-size: 24px; min-height: 34px; }
  .hx-brand img { width: 33px; height: 29px; }
  .hx-contact-link { min-width: 80px; height: 33px; border-radius: 18px; padding: 0 12px; font-size: 15px; }
  .hx-header nav { order: 3; flex: 1 0 100%; position: static; display: flex; justify-content: space-evenly; gap: 8px; height: 34px; }
  .hx-header nav a { font-size: 15px; }
  .hx-header nav a[aria-current]::after { height: 2px; bottom: 0; }
}
