:root {
  --bg: #16181d;
  --bg-2: #1f2229;
  --fg: #f1f2f4;
  --muted: #9aa0ab;
  --accent: #ffc400;
  --ink: #111;
  --wrap: 40rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--fg);
  background:
    radial-gradient(60rem 40rem at 50% 30%, var(--bg-2), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 32px),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Caution tape ---------- */
.tape {
  height: 2.25rem;
  flex-shrink: 0;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 24px, var(--ink) 24px 48px);
  background-size: 68px 100%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 6px 24px rgba(0, 0, 0, .35);
  animation: tape 2.4s linear infinite;
}

.tape--top {
  transform: rotate(-1.2deg) scaleX(1.05);
  margin-top: 1rem;
}

.tape--bottom {
  transform: rotate(1.2deg) scaleX(1.05);
  margin-bottom: 1rem;
  animation-direction: reverse;
}

@keyframes tape {
  to { background-position: 68px 0; }
}

/* ---------- Content ---------- */
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
}

.gears {
  position: relative;
  width: 200px;
  height: 150px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.gear {
  position: absolute;
  filter: drop-shadow(0 6px 18px rgba(255, 196, 0, .25));
}

.gear--big {
  left: 10px;
  top: 0;
  animation: spin 6s linear infinite;
}

.gear--small {
  left: 128px;
  top: 64px;
  color: var(--fg);
  opacity: .85;
  animation: spin 3.6s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
}

.blink {
  animation: blink 1s steps(1) infinite;
}

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

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.hl {
  background: linear-gradient(transparent 60%, rgba(255, 196, 0, .35) 60%);
}

.lead {
  margin: 0 0 2.5rem;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Progress ---------- */
.progress {
  width: 100%;
  max-width: 26rem;
  height: .875rem;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: rgba(0, 0, 0, .3);
  overflow: hidden;
}

.progress__bar {
  width: 73%;
  height: 100%;
  border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, #e0a800 10px 20px);
  background-size: 28px 100%;
  animation: tape 1s linear infinite, grow 1.6s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes grow {
  from { width: 0; }
}

.progress__label {
  margin: .75rem 0 0;
  font-size: .875rem;
  color: var(--muted);
}

.progress__label strong {
  color: var(--fg);
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
