:root {
  color-scheme: dark;
  --background: #060d0b;
  --accent: #23d7a0;
  --text: #f2f7f5;
  --muted: #769087;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--background);
}

body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(rgba(99, 151, 132, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 151, 132, .035) 1px, transparent 1px),
    var(--background);
  background-size: 72px 72px;
  opacity: 1;
  visibility: visible;
  transition: opacity .42s ease, visibility .42s ease;
}

#loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 46%, rgba(25, 164, 121, .09), transparent 32%);
}

#loading.is-hidden,
#loading.loading_done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ambient {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(62vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(20, 190, 137, .055);
  filter: blur(90px);
  transform: translate(-50%, -50%);
}

.splash-content {
  position: relative;
  z-index: 2;
  width: min(78vw, 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-4vh);
  animation: reveal .7s ease both;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 64px;
}

.brand-mark img {
  width: 50px;
  height: 56px;
  object-fit: contain;
}

h1 {
  margin: 20px 0 14px;
  color: var(--text);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}

.loader-progress {
  min-height: 12px;
}

.loader-percent {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
  text-align: center;
}

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(calc(-4vh + 10px));
  }
  to {
    opacity: 1;
    transform: translateY(-4vh);
  }
}

@media (max-width: 640px) {
  #loading {
    background-size: 56px 56px;
  }

  .brand-mark {
    width: 54px;
    height: 60px;
  }

  .brand-mark img {
    width: 46px;
    height: 52px;
  }

  h1 {
    margin: 18px 0 13px;
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
