#loader {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 24px;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.23,1,0.32,1);
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-30px);
}

.loader-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 28px;
  color: white;
  letter-spacing: 4px;
  animation: fadeUp 0.7s ease 0.2s both;
}

.loader-bar-wrap {
  width: 120px;
  height: 1px;
  background: #222;
  position: relative;
  overflow: hidden;
}

.loader-bar {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: #d4a373;
  animation: loadBar 2.2s cubic-bezier(0.4,0,0.2,1) 0.5s forwards;
}

.loader-counter {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  color: #444;
  letter-spacing: 3px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes loadBar {
  0%   { width: 0%; }
  40%  { width: 55%; }
  70%  { width: 78%; }
  100% { width: 100%; }
}