/* Full-page boot overlay — light by default, dark on the current home page. */

html.inox-booting {
  overflow: hidden;
}

#inox-boot {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  background: #f6f4ef;
  color: #17140f;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.58s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0.58s step-end;
  pointer-events: all;
}

#inox-boot.is-done,
html.inox-booted #inox-boot {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.58s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0.58s step-end;
}

.inox-boot__spinner {
  --boot-size: 42px;
  --boot-spoke-w: 3.5px;
  --boot-spoke-h: 11px;
  position: relative;
  width: var(--boot-size);
  height: var(--boot-size);
}

.inox-boot__spinner span {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--boot-spoke-w);
  height: var(--boot-spoke-h);
  margin-left: calc(var(--boot-spoke-w) / -2);
  border-radius: 999px;
  background: currentColor;
  transform-origin: 50% calc(var(--boot-size) / 2);
  animation: inox-boot-spoke 1s linear infinite;
  will-change: opacity;
}

.inox-boot__spinner span:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: 0s;
}
.inox-boot__spinner span:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -0.0833s;
}
.inox-boot__spinner span:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.1667s;
}
.inox-boot__spinner span:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.25s;
}
.inox-boot__spinner span:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.3333s;
}
.inox-boot__spinner span:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.4167s;
}
.inox-boot__spinner span:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.inox-boot__spinner span:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.5833s;
}
.inox-boot__spinner span:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.6667s;
}
.inox-boot__spinner span:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.75s;
}
.inox-boot__spinner span:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.8333s;
}
.inox-boot__spinner span:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: -0.9167s;
}

@keyframes inox-boot-spoke {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.12;
  }
}

.portal-body--home-instance #inox-boot {
  background: #080a0d;
  color: #eef1f4;
}

.portal-body--home-instance .inox-boot__spinner span {
  background: #eef1f4;
}

@media (prefers-reduced-motion: reduce) {
  .inox-boot__spinner span {
    animation: none;
    opacity: 0.45;
  }
  .inox-boot__spinner span:nth-child(1),
  .inox-boot__spinner span:nth-child(2),
  .inox-boot__spinner span:nth-child(12) {
    opacity: 1;
  }
  #inox-boot,
  #inox-boot.is-done,
  html.inox-booted #inox-boot {
    transition-duration: 0.01ms;
  }
}
