:root {
  --boot-transition-duration: 520ms;
  --boot-transition-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --boot-heading-size: clamp(1.55rem, 2.5vw, 2.15rem);
  --boot-heading-weight: 400;
  --boot-heading-line-height: 0.96;
  --boot-heading-letter-spacing: -0.045em;
}

body.boot-document {
  margin: 0;
  min-height: 100vh;
  background: #000;
}

.boot-shell,
.boot-shell * {
  box-sizing: border-box;
}

.boot-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #000;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Instrument Sans", system-ui, sans-serif;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity var(--boot-transition-duration) var(--boot-transition-ease),
    transform var(--boot-transition-duration) var(--boot-transition-ease);
  will-change: opacity, transform;
}

.boot-shell::before,
.boot-shell::after {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
  transition:
    opacity var(--boot-transition-duration) var(--boot-transition-ease),
    transform var(--boot-transition-duration) var(--boot-transition-ease);
  will-change: opacity, transform;
}

.boot-shell::before {
  background:
    radial-gradient(circle at 14% 20%, rgba(128, 115, 255, 0.38) 0%, transparent 26%),
    radial-gradient(circle at 78% 18%, rgba(71, 196, 177, 0.28) 0%, transparent 28%),
    radial-gradient(circle at 52% 68%, rgba(98, 135, 255, 0.14) 0%, transparent 34%);
  filter: blur(56px);
  opacity: 0.88;
  transform: translate3d(0, 0, 0) scale(1.04);
  animation: boot-drift 7.2s ease-in-out infinite alternate;
}

.boot-shell::after {
  background:
    radial-gradient(circle at 68% 54%, rgba(84, 218, 196, 0.16) 0%, transparent 24%),
    radial-gradient(circle at 28% 62%, rgba(139, 128, 255, 0.12) 0%, transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%, rgba(255, 255, 255, 0.018)),
    linear-gradient(
      112deg,
      transparent 14%,
      rgba(255, 255, 255, 0.02) 30%,
      rgba(176, 187, 255, 0.18) 46%,
      rgba(134, 238, 221, 0.16) 52%,
      rgba(255, 255, 255, 0.03) 62%,
      transparent 78%
    );
  filter: blur(22px);
  opacity: 0.62;
  transform: translate3d(-18%, 0, 0) scale(1.08);
  animation: boot-sheen 5.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.boot-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: stretch;
  min-height: 66px;
  padding: 18px 24px 0;
  transition:
    opacity 340ms var(--boot-transition-ease),
    transform var(--boot-transition-duration) var(--boot-transition-ease);
  will-change: opacity, transform;
}

.boot-topbar img {
  grid-column: 2;
  justify-self: center;
  width: 110px;
  height: auto;
  display: block;
}

.boot-main {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 20px 24px 28px;
  transition:
    opacity 340ms var(--boot-transition-ease),
    transform var(--boot-transition-duration) var(--boot-transition-ease);
  will-change: opacity, transform;
}

.boot-content {
  width: min(100%, 560px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 24px;
  text-align: center;
}

.boot-eyebrow,
.boot-title,
.boot-body {
  transition:
    opacity 340ms var(--boot-transition-ease),
    transform var(--boot-transition-duration) var(--boot-transition-ease);
  will-change: opacity, transform;
}

.boot-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.boot-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: var(--boot-heading-size);
  line-height: var(--boot-heading-line-height);
  letter-spacing: var(--boot-heading-letter-spacing);
  font-weight: var(--boot-heading-weight);
  text-wrap: balance;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.34);
}

.boot-body {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.boot-body > * {
  margin: 0;
}

.boot-shell.is-entering {
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(1.008);
}

.boot-shell.is-entering::before {
  opacity: 0.36;
  transform: translate3d(-12%, -4%, 0) scale(1.02);
}

.boot-shell.is-entering::after {
  opacity: 0;
  transform: translate3d(-42%, -2%, 0) scale(1.05);
}

.boot-shell.is-entering .boot-topbar {
  opacity: 0;
  transform: translate3d(0, -8px, 0);
}

.boot-shell.is-entering .boot-main {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.boot-shell.is-entering .boot-eyebrow,
.boot-shell.is-entering .boot-title,
.boot-shell.is-entering .boot-body {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(1.012);
}

.boot-shell.is-exiting,
.boot-shell.is-hidden {
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(1.004);
  pointer-events: none;
}

.boot-shell.is-exiting::before,
.boot-shell.is-hidden::before {
  opacity: 0;
  transform: translate3d(0, -2%, 0) scale(1.08);
}

.boot-shell.is-exiting::after,
.boot-shell.is-hidden::after {
  opacity: 0;
  transform: translate3d(8%, -1%, 0) scale(1.12);
}

.boot-shell.is-exiting .boot-topbar,
.boot-shell.is-hidden .boot-topbar {
  opacity: 0;
  transform: translate3d(0, -8px, 0);
}

.boot-shell.is-exiting .boot-main,
.boot-shell.is-hidden .boot-main {
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(1.01);
}

.boot-shell.is-exiting .boot-eyebrow,
.boot-shell.is-hidden .boot-eyebrow,
.boot-shell.is-exiting .boot-title,
.boot-shell.is-hidden .boot-title,
.boot-shell.is-exiting .boot-body,
.boot-shell.is-hidden .boot-body {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(1.012);
}

@keyframes boot-drift {
  0%,
  100% {
    opacity: 0.62;
    transform: translate3d(-8%, -3%, 0) scale(1.01);
  }

  50% {
    opacity: 0.96;
    transform: translate3d(8%, 4%, 0) scale(1.12);
  }
}

@keyframes boot-sheen {
  0% {
    opacity: 0;
    transform: translate3d(-42%, -2%, 0) scale(1.05);
  }

  14% {
    opacity: 0;
    transform: translate3d(-30%, -1%, 0) scale(1.07);
  }

  28% {
    opacity: 0.28;
    transform: translate3d(-14%, 1%, 0) scale(1.09);
  }

  45%,
  55% {
    opacity: 0.78;
    transform: translate3d(0%, 2%, 0) scale(1.11);
  }

  72% {
    opacity: 0.28;
    transform: translate3d(14%, 1%, 0) scale(1.09);
  }

  86% {
    opacity: 0;
    transform: translate3d(30%, 0, 0) scale(1.07);
  }

  100% {
    opacity: 0;
    transform: translate3d(42%, 0, 0) scale(1.05);
  }
}

@media (min-width: 900px) {
  .boot-title {
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .boot-topbar {
    padding: 14px 16px 0;
  }

  .boot-main {
    padding: 16px;
  }

  .boot-content {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-shell,
  .boot-shell::before,
  .boot-shell::after,
  .boot-topbar,
  .boot-main,
  .boot-eyebrow,
  .boot-title,
  .boot-body {
    animation: none;
    transition: none;
    transform: none !important;
  }

  .boot-shell.is-entering,
  .boot-shell.is-exiting,
  .boot-shell.is-hidden {
    opacity: 1;
  }
}
