/* Independent of the scaled portfolio canvas; the GIF has a white background. */
html.is-first-loading,
html.is-first-loading body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.site-loader {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  box-sizing: border-box;
  background: #ffffff;
  color: #1f3556;
  opacity: 1;
  transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-loader:not([open]) { display: none; }
.site-loader[open] { display: grid; place-items: center; }
.site-loader::backdrop { background: transparent; }
.site-loader.is-leaving { opacity: 0; }
.site-loader__content { display: grid; justify-items: center; gap: 6px; }
.site-loader__image {
  display: block;
  width: min(220px, 65vw, 48vh);
  width: min(220px, 65vw, 48dvh);
  height: auto;
}
.site-loader__label {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  .site-loader { transition: none; }
}
