/* ============================================================
   PRELOADER — Clean minimal
   ============================================================ */

#preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  transition: opacity 0.6s var(--ease-smooth),
              visibility 0.6s var(--ease-smooth);
}

#preloader.dismissing {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-smooth);
}

#preloader.dismissed {
  display: none;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ─── SVG logo animation ─── */
.preloader-logo {
  width: 80px;
  height: 64px;
}

#preloader-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.draw-path {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: var(--path-length);
  stroke-dashoffset: var(--path-length);
  animation: drawPath 1s var(--ease-expo) forwards;
}

#arc-1 { animation-delay: 0.0s; }
#arc-2 { animation-delay: 0.08s; }
#arc-3 { animation-delay: 0.16s; }
#arc-4 { animation-delay: 0.24s; }
#arc-5 { animation-delay: 0.32s; }
#arc-6 { animation-delay: 0.40s; }
#stem  { animation-delay: 0.0s;  }

/* ─── Wordmark ─── */
.preloader-wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-expo) 0.5s forwards;
}

/* ─── Tagline ─── */
.preloader-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-expo) 0.65s forwards;
}

/* ─── Progress bar ─── */
.preloader-progress {
  width: 120px;
  height: 1px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.4s var(--ease-expo) 0.6s forwards;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: var(--ink);
  border-radius: var(--r-full);
  transition: width 0.3s var(--ease-smooth);
}

/* ─── Glow (subtle) ─── */
.preloader-glow { display: none; }
