/**
 * ============================================================
 * loader.css — PAGE LOADING SCREEN
 * ============================================================
 *
 * The branded loading screen shown before the site appears.
 * Animated by js/loader.js using GSAP.
 *
 * To change the loader duration → edit js/loader.js
 * To change the loader colors  → edit css/tokens.css
 *
 * ============================================================
 */

/* Full-screen overlay */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

/* Logo + wordmark group */
.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;               /* fades in via GSAP */
  transform: translateY(20px);
}

/* SVG ripple icon */
.loader-ripple {
  width: 80px;
  height: 80px;
}

/* "SURFACED" text */
.loader-wordmark {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: .28em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}

/* "STUDIO" subtext */
.loader-sub {
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-top: -10px;
}

/* Progress bar container */
.loader-bar-wrap {
  width: 160px;
  height: 1px;
  background: rgba(255,255,255,.08);
  border-radius: 1px;
  overflow: hidden;
  opacity: 0;               /* fades in via GSAP */
}

/* Progress bar fill — animates width via JS */
.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--purple), var(--cyan));
  border-radius: 1px;
  transition: width .05s linear;
}
