/* PRELOADER */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background:
    linear-gradient(135deg, rgba(201, 151, 58, 0.08), transparent 34%),
    #030303;
  pointer-events: all;
  overflow: hidden;
}

.preloader__scene {
  width: min(92vw, 620px);
  display: grid;
  justify-items: center;
  gap: clamp(0.7rem, 1.8vw, 1rem);
}

.preloader__brand {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  text-align: center;
}

.preloader__brand span {
  color: #c9973a;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  font-weight: 700;
}

.preloader__brand strong {
  color: rgba(251, 245, 234, 0.74);
  font-size: clamp(0.66rem, 1.5vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.preloader__art {
  width: 100%;
  max-height: min(66vh, 520px);
  overflow: visible;
  filter: drop-shadow(0 28px 55px rgba(0, 0, 0, 0.65));
}

.preloader__body-shadow {
  fill: rgba(0, 0, 0, 0.55);
}

.preloader__back {
  stroke: rgba(251, 245, 234, 0.1);
  stroke-width: 1.2;
}

.preloader__spine,
.preloader__skin-highlight {
  fill: none;
  stroke: rgba(255, 218, 180, 0.22);
  stroke-width: 4;
  stroke-linecap: round;
}

.preloader__spine {
  stroke: rgba(63, 31, 20, 0.42);
  stroke-width: 3;
}

.preloader__skin-highlight--right {
  stroke-width: 3;
  opacity: 0.72;
}

.preloader__cup-seat {
  fill: rgba(75, 0, 10, 0.38);
  stroke: rgba(80, 0, 10, 0.5);
  stroke-width: 3;
}

.preloader__cup {
  transform-origin: 280px 252px;
  animation: preloaderCupPulse 1.8s ease-in-out infinite;
}

.preloader__blood-surface {
  fill: #e12a3a;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(215, 32, 49, 0.4));
  transition: opacity 0.18s ease;
}

.preloader__cup-glass {
  stroke: rgba(248, 238, 222, 0.72);
  stroke-width: 3;
}

.preloader__cup-rim,
.preloader__cup-base {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 244, 230, 0.82);
  stroke-width: 3;
}

.preloader__cup-base {
  stroke: rgba(105, 0, 12, 0.55);
}

.preloader__cup-shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.75;
}

.preloader__cup-shine--thin {
  stroke-width: 2;
  opacity: 0.35;
}

.preloader__pump rect,
.preloader__pump circle {
  fill: #111;
  stroke: rgba(248, 238, 222, 0.7);
  stroke-width: 3;
}

.preloader__pump path {
  fill: none;
  stroke: rgba(248, 238, 222, 0.7);
  stroke-width: 5;
  stroke-linecap: round;
}

.preloader__percent-text {
  font-family: "Bebas Neue", sans-serif;
  font-size: 5.6rem;
  letter-spacing: 0;
  dominant-baseline: middle;
}

.preloader__percent-text--base {
  fill: #111;
  stroke: rgba(255, 244, 230, 0.22);
  stroke-width: 1;
}

.preloader__percent-text--fill {
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.42));
}

.preloader__percent-mark {
  font-family: "Outfit", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  baseline-shift: 1.55rem;
}

.preloader__caption {
  color: rgba(251, 245, 234, 0.72);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.preloader__progress {
  width: min(78vw, 360px);
  height: 3px;
  overflow: hidden;
  background: rgba(251, 245, 234, 0.14);
}

.preloader__progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #c9973a;
  transform: scaleX(0);
  transform-origin: left center;
}

@keyframes preloaderCupPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  48% { transform: translateY(1.5px) scale(1.012); }
}

@media (max-width: 640px) {
  .preloader__scene {
    width: min(98vw, 430px);
  }

  .preloader__brand strong {
    letter-spacing: 0.18em;
  }

  .preloader__percent-text {
    font-size: 4.8rem;
  }

  .preloader__caption {
    font-size: 0.68rem;
    letter-spacing: 0.24em;
  }
}

/* LOGO REVEAL */
.logo-reveal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  pointer-events: none;
}

.logo-reveal__image {
  width: min(60%, 320px);
  height: auto;
  opacity: 0;
  transform: scale(0.4);
}
