:root {
  --ink: #101917;
  --muted: #8c9a91;
  --line: rgba(218, 231, 219, 0.18);
  --mint: #b9e7c8;
  --coral: #f29572;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: #f4f7f1;
  background: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: '';
  opacity: 0.3;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.loader {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(100% - 48px, 1180px);
  min-height: 100vh;
  padding: 32px 0 28px;
  margin: auto;
}

.loader__topline,
.loader__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.loader__eyebrow {
  color: var(--mint);
  font-weight: bold;
}

.loader__version,
.loader__percent {
  color: var(--muted);
}

.loader__content {
  position: relative;
  align-self: center;
  width: min(100%, 570px);
  padding: 30px 0 48px;
  text-align: center;
  animation: reveal 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.loader__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 0 auto 46px;
}

.loader__core {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  color: var(--mint);
  font-size: 25px;
  font-style: italic;
  animation: breathe 2.6s ease-in-out infinite;
}

.loader__orbit {
  position: absolute;
  width: 112px;
  height: 48px;
  border: 1px solid rgba(185, 231, 200, 0.62);
  border-radius: 50%;
  transform: rotate(-32deg);
  animation: orbit 7s linear infinite;
}

.loader__orbit::after {
  position: absolute;
  top: -4px;
  right: 14px;
  width: 7px;
  height: 7px;
  content: '';
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 16px rgba(242, 149, 114, 0.8);
}

.loader__orbit--two {
  width: 48px;
  height: 112px;
  transform: rotate(32deg);
  animation-direction: reverse;
  opacity: 0.55;
}

.loader__orbit--two::after {
  top: auto;
  right: auto;
  bottom: -4px;
  left: 10px;
}

.loader__status {
  margin: 0 0 20px;
  color: var(--coral);
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.loader__status span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--coral);
  animation: blink 1.2s ease-in-out infinite;
}

h1 {
  margin: 0;
  color: #f4f7f1;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: normal;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.loader__caption {
  max-width: 270px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.loader__footer {
  gap: 24px;
}

.loader__progress {
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.loader__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--mint);
  animation: loading 3.4s linear forwards;
}

@keyframes loading {
  to { width: 100%; }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
  50% { box-shadow: 0 0 0 10px rgba(185, 231, 200, 0.04); }
}

@keyframes orbit {
  to { transform: rotate(328deg); }
}

@keyframes blink {
  50% { opacity: 0.3; }
}

@media (max-width: 560px) {
  .loader {
    width: min(100% - 32px, 1180px);
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .loader__content {
    padding-bottom: 28px;
  }

  .loader__mark {
    margin-bottom: 34px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 60px);
  }
}

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