@font-face {
  font-family: "Keel Pixel";
  src: url("../assets/fonts/silkscreen-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "Keel Pixel";
  src: url("../assets/fonts/silkscreen-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: block;
}
@font-face {
  font-family: "Keel Wide";
  src: url("../assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: block;
}
@font-face {
  font-family: "Keel Mono";
  src: url("../assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: block;
}

#boot {
  display: none;
}
html.boot #boot {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #0a1014;
  color: #edead5;
  transition: opacity 0.55s ease;
}
html.boot #boot.leaving {
  opacity: 0;
  pointer-events: none;
}
#boot .stage {
  position: absolute;
  inset: 0;
}

#boot .studio-stage {
  background: #eef2ee;
  opacity: 0;
  transition: opacity 0.35s ease;
}
#boot .studio-stage.show {
  opacity: 1;
}
#boot .studio-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0a1014;
  opacity: 1;
}
#boot .studio-stage.lit::before {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
#boot .studio-logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 6vmin;
  opacity: 0;
  filter: brightness(0.2) blur(6px);
  transform: scale(0.96);
}
#boot .studio-stage.lit .studio-logo {
  opacity: 1;
  filter: none;
  transform: none;
  transition:
    opacity 1.6s ease-out 0.2s,
    filter 1.6s ease-out 0.2s,
    transform 2.4s ease-out 0.2s;
}
#boot .studio-logo svg {
  width: min(62vmin, 520px);
  height: auto;
  display: block;
}
#boot .rib {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

#boot .load-stage {
  background: #18201d;
  opacity: 0;
  transition: opacity 0.5s ease;
  container-type: size;
}
#boot .load-stage.show {
  opacity: 1;
}
#boot .studio-tag {
  position: absolute;
  left: 3cqw;
  top: 2.6cqw;
  font-family: "Keel Mono", "Courier New", monospace;
  font-weight: 600;
  font-size: max(10px, 1.1cqw);
  letter-spacing: 0.35em;
  color: #a0aa94;
}
#boot .ver {
  position: absolute;
  right: 3cqw;
  bottom: 2.2cqw;
  font-family: "Keel Mono", "Courier New", monospace;
  font-size: max(10px, 1cqw);
  color: #a0aa94;
}
#boot .office {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 30%;
  image-rendering: pixelated;
}
#boot .load-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3cqw 6cqw 4.2cqw;
  background: linear-gradient(
    to bottom,
    rgba(24, 32, 29, 0),
    rgba(24, 32, 29, 0.86) 28%,
    #18201d 70%
  );
}
#boot .load-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 4cqw;
  align-items: end;
}
#boot .load-panel h3 {
  grid-row: 1 / span 2;
}
#boot .load-panel .row,
#boot .load-panel .bar {
  grid-column: 1 / -1;
}
#boot h3 {
  margin: 0 0 0.4cqw;
  font-family: "Keel Pixel", "Courier New", monospace;
  font-weight: 700;
  font-size: max(18px, 3.4cqw);
  color: #dfd486;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
#boot h3 small {
  display: block;
  font-size: max(10px, 1.3cqw);
  color: #e6dfc5;
  margin-top: 0.8cqw;
  letter-spacing: 0.2em;
}
#boot ul {
  list-style: none;
  margin: 0 0 1.6cqw;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6cqw 2cqw;
}
#boot li {
  display: flex;
  gap: 1.2cqw;
  align-items: center;
  font-family: Thai, Tahoma, sans-serif;
  font-size: max(11px, 1.2cqw);
  color: #a0aa94;
}
#boot li .box {
  width: max(14px, 1.7cqw);
  height: max(14px, 1.7cqw);
  border: 2px solid #404a3c;
  display: grid;
  place-items: center;
  flex: none;
  font-family: "Keel Pixel", monospace;
  font-size: max(9px, 1.2cqw);
  line-height: 1;
  color: #18201d;
}
#boot li.done {
  color: #edead5;
}
#boot li.done .box {
  background: #a6bc89;
  border-color: #a6bc89;
}
#boot li.now .box {
  border-color: #dfd486;
  animation: boot-blink 0.7s steps(2) infinite;
}
@keyframes boot-blink {
  50% {
    background: #dfd486;
  }
}
#boot .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.7cqw;
  gap: 2cqw;
}
#boot .tip {
  font-family: Thai, Tahoma, sans-serif;
  font-size: max(11px, 1.25cqw);
  color: #a0aa94;
}
#boot .pct {
  font-family: "Keel Pixel", monospace;
  font-weight: 700;
  color: #dfd486;
  font-size: max(14px, 2cqw);
}
#boot .bar {
  position: relative;
  height: max(9px, 1.1cqw);
  background: #0f1512;
  border: 1px solid #404a3c;
}
#boot .bar i {
  position: absolute;
  inset: 0;
  width: 0;
  background: #dfd486;
}
@media (max-width: 560px) {
  #boot .load-panel {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  #boot li.now .box {
    animation: none;
  }
  #boot .studio-logo,
  #boot .studio-stage.lit .studio-logo {
    transition-duration: 0.01s;
    transition-delay: 0s;
  }
}

html.boot,
html.boot * {
  cursor: none !important;
}
