* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  background: #000;
  color: #fff;
  font-size: 150%;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader {
  text-align: left;
  transition: opacity 1s ease-out, transform 1s ease-out;
  z-index: 9999;
}

.loader.fade-out {
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
}

.counter {
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s forwards;
}

.headline span {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0s forwards;
  margin: 0 4px;
}

/* Animate each word with delay */
.headline span:nth-child(1) { animation-delay: 0.3s; }
.headline span:nth-child(2) { animation-delay: 0.5s; }
.headline span:nth-child(3) { animation-delay: 0.7s; }
.headline span:nth-child(4) { animation-delay: 0.9s; }
.headline span:nth-child(5) { animation-delay: 1.1s; }
.headline span:nth-child(6) { animation-delay: 1.3s; }
.headline span:nth-child(7) { animation-delay: 1.5s; }

@keyframes fadeInUp {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.now {
  transition: font-family 0.5s ease;
  font-style: italic;
}

@media (max-width: 768px) {
  .headline span {
    font-size: 1.5rem;
  }
}