* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: #0a0a0c;
}

/* Lenis required CSS — without it, host-page CSS like Elementor's
   `html { scroll-behavior: smooth }` re-animates every Lenis scroll step
   and the page crawls (this bit us on the WordPress embed). */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.scroll-stage {
  position: relative;
  width: 100%;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

/* thin journey progress bar */
#progress-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 10;
  transition: opacity 0.6s ease;
}
#load-fill {
  /* background-loading indicator (phase 2), sits under the journey fill */
  position: absolute;
  inset: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.22);
}
#progress-fill {
  position: relative;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.85);
}

/* once the journey ends, the fixed-layer UI gets out of the way */
.journey-done #progress-bar,
.journey-done #scroll-hint { opacity: 0; }

/* loading screen */
#loader {
  position: fixed;
  inset: 0;
  background: #0a0a0c;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.8s ease;
}
#loader.done {
  opacity: 0;
  pointer-events: none;
}
.loader-inner {
  text-align: center;
  color: #e8e6e1;
  font-family: Georgia, 'Times New Roman', serif;
}
.loader-title {
  font-size: 28px;
  letter-spacing: 0.35em;
  margin-bottom: 24px;
}
/* animated logo — the wordmark strokes draw themselves in a breathing loop */
.loader-logo svg {
  width: min(340px, 78vw);
  height: auto;
  display: block;
  margin: 0 auto 28px;
  overflow: visible;
}
.loader-logo svg polygon,
.loader-logo svg path {
  fill: none;
  stroke: #e8e6e1;
  stroke-width: 1.6;
  stroke-miterlimit: 10;
  stroke-dasharray: 100;   /* shapes carry pathLength="100" — uniform draw pace */
  stroke-dashoffset: 100;
  animation: logo-draw 2.4s ease-in-out infinite alternate;
}
@keyframes logo-draw {
  from { stroke-dashoffset: 100; opacity: 0.35; }
  to   { stroke-dashoffset: 0;   opacity: 1; }
}
.loader-track {
  width: 260px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 12px;
}
#loader-fill {
  height: 100%;
  width: 0%;
  background: #e8e6e1;
  transition: width 0.2s ease;
}
#loader-pct {
  font-size: 13px;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

/* scroll hint */
#scroll-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  z-index: 5;
  opacity: 0;
  transition: opacity 1s ease;
  animation: hint-float 2.2s ease-in-out infinite;
  pointer-events: none;
}
#scroll-hint.visible { opacity: 1; }
#scroll-hint.hidden { opacity: 0 !important; }

@keyframes hint-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
