/* ================================================================
   Panacea — Page Loader
   ================================================================ */

#pl {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #013d1d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1),
              opacity 0.4s ease;
  will-change: transform;
}

#pl.pl-out {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.pl-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: pl-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes pl-rise {
  to { opacity: 1; transform: translateY(0); }
}

.pl-cross {
  width: 40px;
  height: 40px;
  position: relative;
  margin-bottom: 28px;
  opacity: 0.18;
}

.pl-cross::before,
.pl-cross::after {
  content: '';
  position: absolute;
  background: #02a650;
  border-radius: 2px;
}

.pl-cross::before { width: 4px; height: 100%; left: 50%; transform: translateX(-50%); }
.pl-cross::after  { width: 100%; height: 4px; top: 50%; transform: translateY(-50%); }

.pl-logo {
  width: 130px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  display: block;
}

.pl-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 10px;
}

.pl-tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 25px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  letter-spacing: 0.01em;
}

.pl-bar-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pl-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #02a650, #00d464);
  animation: pl-fill 2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
  border-radius: 0 2px 2px 0;
}

@keyframes pl-fill {
  0%   { width: 0; }
  60%  { width: 78%; }
  85%  { width: 92%; }
  100% { width: 100%; }
}
