/* =========================================================
   loader.css — simple intro loader with curtain reveal
   (must be used together with the matching loader.js)
   ========================================================= */
html.is-loading, html.is-loading body { overflow: hidden; }

#loader {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-family: 'Space Mono', monospace;
}
#loader.done { pointer-events: none; }

/* two curtain halves */
.ld-panel {
  position: absolute; left: 0; right: 0;
  height: 50.6%;
  background: var(--bg, #0a050f);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.ld-panel.top { top: 0; }
.ld-panel.bottom { bottom: 0; }

/* glowing line that flashes across the middle as it opens */
.ld-seam {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; margin-top: -1px;
  background: var(--accent, #bf7bff);
  box-shadow: 0 0 30px 6px var(--accent, #bf7bff);
  transform: scaleX(0);
  opacity: 0;
  z-index: 2;
}
@keyframes ld-seam {
  0%   { transform: scaleX(0); opacity: 1; }
  40%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* center content (stacked vertically) */
.ld-center {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
  padding: 0 20px;
  text-align: center;
  transition: opacity 0.4s, transform 0.5s, filter 0.4s;
}
.ld-tag {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--accent, #bf7bff);
  text-shadow: 0 0 30px rgba(191,123,255,0.45);
  animation: ld-in 0.6s ease both;
}
.ld-sub {
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--muted, rgba(245,240,255,0.5));
  text-transform: uppercase;
  animation: ld-in 0.6s 0.2s ease both;
}
.ld-bar {
  width: 160px; height: 2px;
  margin-top: 6px;
  background: var(--border, rgba(191,123,255,0.15));
  border-radius: 99px;
  overflow: hidden;
  animation: ld-in 0.6s 0.3s ease both;
}
.ld-fill {
  height: 100%; width: 0%;
  background: var(--accent, #bf7bff);
  box-shadow: 0 0 10px var(--accent, #bf7bff);
  border-radius: 99px;
}
@keyframes ld-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* exit: title flies toward you and blurs out, line flashes, screen splits open */
#loader.done .ld-center { opacity: 0; transform: scale(1.12); filter: blur(8px); }
#loader.done .ld-seam   { animation: ld-seam 0.95s ease-out forwards; }
#loader.done .ld-panel.top    { transform: translateY(-101%); transition-delay: 0.35s; }
#loader.done .ld-panel.bottom { transform: translateY(101%);  transition-delay: 0.35s; }
