html.office-booting,
html.office-booting body {
  background: #0a0d0f;
}

.office-loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, #12241e 0%, #0d1a16 42%, #0a0d0f 78%);
  color: #d7e4dc;
  pointer-events: auto;
}

.office-loader[hidden] {
  display: none;
}

.office-loader-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.office-loader-label {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #7bc96f;
}

.office-loader-count {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #9bb0a6;
}

.office-loader-track {
  position: relative;
  width: min(220px, 62vw);
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #122022;
  box-shadow: inset 0 0 0 1px #7bc96f22;
}

.office-loader-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f8f58, #7bc96f);
  transition: width 0.24s ease;
}

.office-loader-track.is-waiting::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 28%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f8f58, #7bc96f);
  animation: office-loader-wait 1.1s ease-in-out infinite;
}

.west-run {
  position: relative;
  display: grid;
  place-items: center;
  width: min(318px, 84vw);
  aspect-ratio: 636 / 562;
}

.west-run-loop,
.west-run-still {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.west-run-loop img,
.west-run-still,
.west-run-still img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 10px rgba(4, 10, 8, 0.42));
}

.west-run-still {
  visibility: hidden;
}

.office-loader.is-revealing .office-loader-inner {
  animation: office-west-exit 0.32s ease-in forwards;
}

.office-loader.is-revealing {
  animation: office-iris 0.82s 0.22s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.office-loader.is-reduced.is-revealing,
.office-loader.is-revealing.is-reduced {
  animation: office-fade-out 0.4s ease forwards;
}

.office-loader.is-reduced .office-loader-inner,
.office-loader.is-reduced.is-revealing .office-loader-inner {
  animation: none;
}

.space-shell.office-booting .top-hud,
.space-shell.office-booting .edition,
.space-shell.office-booting .hero-copy,
.space-shell.office-booting .bottom-hud,
.space-shell.office-booting .space-footer,
.space-shell.office-booting .scene-caption,
.space-shell.office-booting .west-dialogue-overlay,
.space-shell.office-booting .scene-load-card,
.space-shell.office-booting .office-unavailable,
.space-shell.office-booting .office-anchor-layer,
.space-shell.office-booting .view-note {
  visibility: hidden !important;
  pointer-events: none !important;
}

.space-shell.office-revealing .scene-wrap {
  transform-origin: 58% 48%;
  animation: office-scene-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.space-shell.office-revealed .top-hud {
  animation: office-ui-in 0.5s ease both;
}
.space-shell.office-revealed .edition {
  animation: office-ui-in 0.5s ease 0.08s both;
}
.space-shell.office-revealed .hero-copy {
  animation: office-ui-in 0.5s ease 0.16s both;
}
.space-shell.office-revealed .scene-caption,
.space-shell.office-revealed .bottom-hud {
  animation: office-ui-in 0.48s ease 0.24s both;
}
.space-shell.office-revealed .west-dialogue-overlay {
  animation: office-ui-in 0.55s ease 0.32s both;
}
.space-shell.office-revealed .space-footer,
.space-shell.office-revealed .office-unavailable {
  animation: office-ui-in 0.45s ease 0.4s both;
}

@keyframes office-loader-wait {
  0%,
  100% {
    transform: translateX(-20%);
  }
  50% {
    transform: translateX(160%);
  }
}

@keyframes office-west-exit {
  to {
    transform: translateX(38vw);
    opacity: 0;
  }
}

@keyframes office-iris {
  from {
    clip-path: circle(150% at 52% 48%);
  }
  to {
    clip-path: circle(0% at 52% 48%);
  }
}

@keyframes office-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes office-scene-in {
  from {
    transform: scale(1.045);
  }
  to {
    transform: scale(1);
  }
}

@keyframes office-ui-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.office-loader.is-reduced .west-run-loop,
.office-loader.is-reduced .west-run-loop img {
  visibility: hidden;
}

.office-loader.is-reduced .west-run-still {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .west-run-loop,
  .west-run-loop img {
    visibility: hidden;
  }

  .west-run-still {
    visibility: visible;
  }

  .office-loader-track.is-waiting::after {
    animation: none;
  }

  .office-loader.is-revealing,
  .office-loader.is-reduced.is-revealing {
    animation: office-fade-out 0.4s ease forwards !important;
    animation-duration: 0.4s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.4s !important;
  }

  .office-loader.is-revealing .office-loader-inner,
  .space-shell.office-revealing .scene-wrap {
    animation: none !important;
  }

  .space-shell.office-revealed .top-hud,
  .space-shell.office-revealed .edition,
  .space-shell.office-revealed .hero-copy,
  .space-shell.office-revealed .scene-caption,
  .space-shell.office-revealed .bottom-hud,
  .space-shell.office-revealed .west-dialogue-overlay,
  .space-shell.office-revealed .space-footer,
  .space-shell.office-revealed .office-unavailable {
    animation: office-ui-fade 0.4s ease both !important;
    animation-duration: 0.4s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.4s !important;
  }
}

@keyframes office-ui-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
