/* ===================================================================
   NEW SOFA CENTRE — ENTERPRISE LUXURY 5-SECOND CINEMATIC INTRO
   Clean Background (No Background Circular Rings/Halos)
   Focus on Master Gold Emblem, Specular Light Sheen Sweeps,
   Anamorphic Lens Flare, Diamond Star Glints & Marble Stage
   =================================================================== */

/* 1. Main Fullscreen Intro Overlay */
.nsc-intro-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 50%, #16130d 0%, #0c0b0f 50%, #030304 100%);
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: 
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  perspective: 1200px;
  touch-action: manipulation;
}

/* Exit State */
.nsc-intro-overlay.intro-exiting {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  filter: brightness(1.3) blur(8px);
  pointer-events: none;
}

.nsc-intro-overlay.intro-hidden {
  display: none !important;
}

/* 2. Soft Atmospheric Lighting Backdrop (No Circular Discs) */
.nsc-intro-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.nsc-intro-ambient-lighting {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.05) 0%,
    rgba(255, 235, 160, 0.08) 35%,
    rgba(180, 140, 20, 0.04) 65%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
}

/* Deep Atmospheric Vignette */
.nsc-intro-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}

/* Floating Gold Particle Dust Layer */
.nsc-intro-particle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nsc-gold-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fce498 0%, #d4af37 60%, transparent 100%);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
  animation: introParticleFloat 6s ease-out infinite;
  opacity: 0;
  will-change: transform, opacity;
}

@keyframes introParticleFloat {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.4);
  }
  25% {
    opacity: 0.75;
  }
  75% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(1.1);
  }
}

/* 3. Interactive Touch/Click Ripple Effect */
.nsc-intro-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 235, 160, 0.85);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.75), inset 0 0 15px rgba(212, 175, 55, 0.4);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: introTouchRipple 0.8s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
  z-index: 5;
}

@keyframes introTouchRipple {
  0% { transform: translate(-50%, -50%) scale(0.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

/* 4. Glassmorphic Skip Intro Button */
.nsc-intro-skip-btn {
  position: absolute;
  top: max(22px, env(safe-area-inset-top, 22px));
  right: max(22px, env(safe-area-inset-right, 22px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.15rem;
  background: rgba(16, 14, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 9999px;
  color: #fff4d0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.18);
  outline: none;
  touch-action: manipulation;
}

.nsc-intro-skip-btn:hover {
  background: rgba(28, 24, 34, 0.9);
  border-color: rgba(255, 223, 100, 0.9);
  color: #ffffff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65), 0 0 25px rgba(212, 175, 55, 0.5);
}

.nsc-intro-skip-btn:active {
  transform: translateY(0) scale(0.96);
}

.nsc-intro-skip-btn svg {
  transition: transform 0.25s ease;
}

.nsc-intro-skip-btn:hover svg {
  transform: translateX(2px);
}

/* 5. Central Stage Container */
.nsc-intro-stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 95vw;
  padding: 1.5rem 1rem;
}

/* 6. Master Gold Emblem Container */
.nsc-intro-emblem-wrap {
  position: relative;
  width: clamp(170px, 32vw, 290px);
  height: clamp(170px, 32vw, 290px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: emblemEntranceSmooth 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             emblemFloatingPhysics 4.2s ease-in-out 1.1s infinite;
  transform-origin: center center;
}

/* High-Definition Master Emblem Image */
.nsc-intro-emblem-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: 
    drop-shadow(0 20px 42px rgba(0, 0, 0, 0.95))
    drop-shadow(0 0 22px rgba(212, 175, 55, 0.5))
    drop-shadow(0 0 45px rgba(255, 215, 80, 0.25));
  animation: emblemRoyalLuster 5s ease-in-out infinite alternate;
  transition: transform 0.3s ease-out;
}

@keyframes emblemRoyalLuster {
  0% {
    filter: 
      drop-shadow(0 20px 42px rgba(0, 0, 0, 0.95))
      drop-shadow(0 0 20px rgba(212, 175, 55, 0.45))
      drop-shadow(0 0 38px rgba(255, 215, 80, 0.2));
  }
  100% {
    filter: 
      drop-shadow(0 20px 42px rgba(0, 0, 0, 0.95))
      drop-shadow(0 0 32px rgba(212, 175, 55, 0.75))
      drop-shadow(0 0 58px rgba(255, 230, 120, 0.38));
  }
}

/* Smooth Stately Entrance */
@keyframes emblemEntranceSmooth {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Subtle Calm Vertical Hover */
@keyframes emblemFloatingPhysics {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* 7. WARM ROYAL GOLDEN BREATHING AURA & SPOTLIGHT (Calm, Slow & Majestic - No Sliced Streaks) */
.nsc-intro-gold-aura {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 100, 0.24) 0%, rgba(212, 175, 55, 0.12) 48%, transparent 74%);
  filter: blur(28px);
  z-index: 1;
  pointer-events: none;
  animation: royalGoldAuraBreathe 5s ease-in-out infinite alternate;
}

@keyframes royalGoldAuraBreathe {
  0% {
    transform: scale(0.96);
    opacity: 0.45;
  }
  100% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

.nsc-intro-gold-gleam {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 120px;
  background: radial-gradient(ellipse at 50% 25%, rgba(255, 230, 130, 0.22) 0%, rgba(212, 175, 55, 0.08) 50%, transparent 80%);
  filter: blur(22px);
  z-index: 1;
  pointer-events: none;
  animation: royalSpotlightGlow 5s ease-in-out infinite alternate;
}

@keyframes royalSpotlightGlow {
  0% {
    opacity: 0.4;
    transform: translateX(-50%) scale(0.95);
  }
  100% {
    opacity: 0.85;
    transform: translateX(-50%) scale(1.05);
  }
}

/* 8. PROFESSIONAL METALLIC STUDIO SHINE (Silky Feathered Luster Sweep) */
.nsc-intro-pro-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  /* Circular mask conforming exactly to the round emblem frame */
  mask-image: radial-gradient(circle at 50% 50%, black 63%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 63%, transparent 70%);
  mix-blend-mode: screen;
}

.nsc-intro-pro-shine::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -80%;
  width: 260%;
  height: 220%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(212, 175, 55, 0) 34%,
    rgba(255, 230, 160, 0.12) 42%,
    rgba(255, 252, 235, 0.65) 50%,
    rgba(255, 230, 160, 0.12) 58%,
    rgba(212, 175, 55, 0) 66%,
    transparent 80%
  );
  filter: blur(6px);
  transform: translate3d(-75%, -75%, 0) rotate(18deg);
  animation: proMetallicStudioShine 3.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  will-change: transform, opacity;
}

@keyframes proMetallicStudioShine {
  0% {
    transform: translate3d(-75%, -75%, 0) rotate(18deg);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  48% {
    opacity: 0.9;
  }
  62% {
    transform: translate3d(75%, 75%, 0) rotate(18deg);
    opacity: 0;
  }
  100% {
    transform: translate3d(75%, 75%, 0) rotate(18deg);
    opacity: 0;
  }
}

/* 9. SYNCHRONIZED APEX DIAMOND LIGHT GLINT */
.nsc-intro-apex-glint {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  z-index: 4;
  pointer-events: none;
  color: #fff8dc;
  filter: drop-shadow(0 0 6px #ffd700) drop-shadow(0 0 14px rgba(255, 235, 160, 0.9));
  animation: proApexGlint 3.6s ease-in-out infinite;
  will-change: transform, opacity;
  opacity: 0;
}

@keyframes proApexGlint {
  0%, 30% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }
  42% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.15) rotate(45deg);
  }
  54% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(90deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(90deg);
  }
}

/* 10. Marble Stage Floor Reflection Effect */
.nsc-intro-stage-reflection {
  position: relative;
  width: clamp(160px, 30vw, 270px);
  height: 55px;
  margin-top: -18px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

.nsc-intro-stage-reflection img {
  width: 100%;
  transform: scaleY(-0.7) translateY(-60%);
  filter: blur(2.5px) brightness(0.85);
}

/* 11. Brand Typography Reveal */
.nsc-intro-brand-block {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: brandBlockEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  opacity: 0;
  transform: translateY(18px);
}

@keyframes brandBlockEntrance {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.nsc-intro-crest-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: clamp(0.68rem, 1.8vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e5c158;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.65);
}

.crest-dot {
  color: #fff4d0;
  font-size: 0.82rem;
  animation: crestDotPulse 1.8s ease-in-out infinite alternate;
}

@keyframes crestDotPulse {
  0% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.25); }
}

.nsc-intro-title {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.15;
}

/* Continuous Luxury Gold Ambient Text Glow */
.gold-gradient-text {
  background: linear-gradient(
    135deg,
    #fce082 0%,
    #d4af37 32%,
    #f8e49e 50%,
    #d4af37 68%,
    #b88a1b 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldTextShimmer 6s ease-in-out infinite alternate;
  display: inline-block;
  filter: drop-shadow(0 2px 14px rgba(212, 175, 55, 0.4));
}

@keyframes goldTextShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}

.nsc-intro-tagline {
  margin: 0.15rem 0 0 0;
  font-size: clamp(0.76rem, 2vw, 0.94rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 244, 215, 0.8);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

/* 12. Dynamic Dual Loader: % Counter & Progress Beam */
.nsc-intro-timer-container {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  animation: brandBlockEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  opacity: 0;
}

/* Top Progress Stats Row: Status Pill + % Counter */
.nsc-intro-stats-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nsc-intro-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 9999px;
  font-size: clamp(0.72rem, 1.8vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff1c2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.pill-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
  animation: dotBlink 2.5s infinite ease-in-out alternate;
}

@keyframes dotBlink {
  0% { opacity: 0.35; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.2); }
}

/* Numerical Percentage Readout */
.nsc-intro-percent-badge {
  font-family: 'Cinzel', monospace, serif;
  font-size: clamp(0.78rem, 2vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
  min-width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Slim 5-Second Glowing Gold Progress Bar */
.nsc-intro-progress-bar-wrap {
  width: clamp(200px, 45vw, 290px);
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  position: relative;
}

.nsc-intro-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #9e7a16 0%, #d4af37 50%, #fce082 100%);
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8), 0 0 20px rgba(255, 220, 100, 0.5);
  transition: width 0.05s linear;
}

/* 13. Responsive Breakpoints Across All Devices */

/* Mobile Portrait (< 480px) */
@media (max-width: 480px) {
  .nsc-intro-stage {
    padding: 1rem 0.5rem;
  }
  .nsc-intro-emblem-wrap {
    width: 175px;
    height: 175px;
  }
  .nsc-intro-title {
    font-size: 1.55rem;
    letter-spacing: 0.08em;
  }
  .nsc-intro-crest-tag {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
  }
  .nsc-intro-tagline {
    font-size: 0.74rem;
  }
  .nsc-intro-skip-btn {
    top: 14px;
    right: 14px;
    padding: 0.4rem 0.85rem;
    font-size: 0.72rem;
  }
  .nsc-intro-progress-bar-wrap {
    width: 190px;
  }
}

/* Mobile Landscape (< 900px and max-height 500px) */
@media (max-height: 520px) and (orientation: landscape) {
  .nsc-intro-stage {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 2rem;
  }
  .nsc-intro-emblem-wrap {
    width: 140px;
    height: 140px;
  }
  .nsc-intro-stage-reflection {
    display: none;
  }
  .nsc-intro-brand-block {
    margin-top: 0;
    align-items: flex-start;
    text-align: left;
  }
  .nsc-intro-title {
    font-size: 1.4rem;
  }
  .nsc-intro-timer-container {
    margin-top: 0.6rem;
    align-items: flex-start;
  }
}

/* Tablet (481px - 1024px) */
@media (min-width: 481px) and (max-width: 1024px) {
  .nsc-intro-emblem-wrap {
    width: 230px;
    height: 230px;
  }
  .nsc-intro-title {
    font-size: 2.1rem;
  }
}

/* Ultra-HD & 4K (> 1600px) */
@media (min-width: 1600px) {
  .nsc-intro-emblem-wrap {
    width: 340px;
    height: 340px;
  }
  .nsc-intro-title {
    font-size: 3rem;
  }
  .nsc-intro-progress-bar-wrap {
    width: 340px;
  }
}

/* 14. Replay Trigger Button (Footer & Navigation) */
.nsc-intro-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 9999px;
  color: var(--gold-primary, #d4af37);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.nsc-intro-replay-btn:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: rgba(255, 223, 100, 0.75);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}
