/* ============================================================
   RASHMI CONSTRUCTIONS - intro.css
   Curated construction-scene intro
   ============================================================ */

@keyframes rcIntroSceneIn {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes rcIntroBadgeIn {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes rcIntroBrandIn {
  from { opacity: 0; transform: translate(-50%, 18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

#rc-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow: hidden;
  background: #070b11;
  color: white;
  cursor: url('../assets/images/rc-pointer.svg') 5 3, auto;
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease, visibility .5s ease;
}

#rc-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 52%, transparent 0 44%, rgba(0,0,0,.15) 66%, rgba(0,0,0,.44) 100%),
    linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.28));
}

#rc-intro.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#rc-intro-scene {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  opacity: 0;
  transform: scale(1.025);
}

#rc-intro.is-ready #rc-intro-scene {
  animation: rcIntroSceneIn .54s ease forwards;
}

.rc-intro-phase {
  position: fixed;
  left: 50%;
  top: max(18px, env(safe-area-inset-top));
  z-index: 2;
  transform: translate(-50%, -12px);
  padding: 7px 18px;
  background: rgba(192,57,43,.92);
  color: rgba(255,255,255,.82);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}

#rc-intro.is-ready .rc-intro-phase {
  animation: rcIntroBadgeIn .48s ease .12s forwards;
}

.rc-intro-brand {
  position: fixed;
  left: 50%;
  bottom: max(38px, env(safe-area-inset-bottom));
  z-index: 2;
  transform: translate(-50%, 18px);
  width: min(720px, 92vw);
  text-align: center;
  pointer-events: none;
  opacity: 0;
}

#rc-intro.is-ready .rc-intro-brand {
  animation: rcIntroBrandIn .58s ease .18s forwards;
}

.rc-intro-brand::before {
  content: '';
  display: block;
  width: 110px;
  height: 2px;
  margin: 0 auto 14px;
  background: linear-gradient(90deg, transparent, #c0392b, #ffd36a, transparent);
  box-shadow: 0 0 18px rgba(192,57,43,.45);
}

.rc-intro-brand h1 {
  margin: 0;
  color: white;
  font-family: var(--font-display), Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,.9), 0 0 34px rgba(192,57,43,.34);
}

.rc-intro-brand p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.38);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.5;
  text-transform: uppercase;
}

#rc-enter {
  position: absolute;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 4;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(7,11,17,.44);
  color: rgba(255,255,255,.82);
  cursor: url('../assets/images/rc-pointer.svg') 5 3, pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  backdrop-filter: blur(10px);
  transition: background .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
}

#rc-enter:hover {
  background: rgba(192,57,43,.9);
  color: white;
  transform: translateY(-2px);
}

#rc-intro.is-zooming #rc-intro-scene {
  transform: scale(1.22);
  opacity: 0;
  transition: transform .78s cubic-bezier(.76, 0, .24, 1), opacity .54s ease;
}

#rc-intro.is-zooming .rc-intro-phase,
#rc-intro.is-zooming .rc-intro-brand,
#rc-intro.is-zooming #rc-enter {
  opacity: 0;
  transition: opacity .24s ease;
}

@media (max-width: 640px) {
  .rc-intro-phase {
    top: max(14px, env(safe-area-inset-top));
    max-width: calc(100vw - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 9px;
    letter-spacing: 2px;
  }

  .rc-intro-brand {
    bottom: max(58px, env(safe-area-inset-bottom));
    width: min(440px, 90vw);
  }

  .rc-intro-brand h1 {
    font-size: clamp(21px, 8vw, 30px);
    letter-spacing: 1.8px;
  }

  .rc-intro-brand p {
    font-size: 9px;
    letter-spacing: 2px;
  }

  #rc-enter {
    right: 16px;
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #rc-intro { display: none !important; }
}
