body {
  margin: 0;
  background-color: #ffffff;
}

#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #171717; /* Fallback */
  background-image: linear-gradient(to bottom, rgba(12, 10, 9, 0.7), rgba(12, 10, 9, 0.5), rgba(12, 10, 9, 0.9)), url('/images/studio/hero-reformer.webp');
  background-size: cover;
  background-position: center 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

#splash-logo-svg {
  width: 200px;
  height: auto;
}

.logo-fill {
  fill: #ffffff !important;
}

/* K - appears first */
.letter-k {
  opacity: 0;
  animation: fadeIn 0.4s ease-out 0.2s forwards;
}

/* I - appears second */
.letter-i {
  opacity: 0;
  animation: fadeIn 0.3s ease-out 0.5s forwards;
}

/* N - appears third */
.letter-n {
  opacity: 0;
  animation: fadeIn 0.4s ease-out 0.8s forwards;
}

/* E - bars appear last, sequentially */
.letter-e1 {
  opacity: 0;
  animation: fadeIn 0.2s ease-out 1.15s forwards;
}

.letter-e2 {
  opacity: 0;
  animation: fadeIn 0.2s ease-out 1.3s forwards;
}

.letter-e3 {
  opacity: 0;
  animation: fadeIn 0.2s ease-out 1.45s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Premium Loading Bar */
.loading-pulse {
  margin-top: 40px;
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1.5s forwards; /* Fades in after logo finishes */
}

.loading-pulse::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 40%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
  animation: sweep 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sweep {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(250%); }
}

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #171717;
  color: #ffffff;
  padding: 8px;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}
