/* Load local Michroma font for immediate availability */
@font-face {
  font-family: 'Michroma';
  src: url('../fonts/Michroma-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* Site-wide preloader styles */
#site-preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #02020a;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

#site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
}

.brand-reveal {
  font-family: 'Michroma', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #fff;
  display: flex;
  gap: 0.5em;
  overflow: hidden;
}

@keyframes revealWord {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
  }

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

.brand-reveal .word {
  opacity: 0;
  display: inline-block;
  animation: revealWord 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.brand-reveal .word:nth-child(1) {
  animation-delay: 0.8s;
}

.brand-reveal .word:nth-child(2) {
  animation-delay: 2.2s;
  color: #ffcf56;
  /* Highlight ICT */
}

.loader-line-mask {
  width: 150px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 20px auto 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.loader-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, transparent, #ffcf56, transparent);
  animation: lineMove 1.5s infinite ease-in-out;
}

@keyframes lineMove {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(200%);
  }
}

@media (max-width: 768px) {
  .brand-reveal {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #site-preloader * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}