/* ==========================================================================
   ENAOORA LUXURY HERO SCROLL EXPERIENCE
   Scroll-linked unboxing canvas, immediate headline visibility, 3D SVG fallback & 60fps scrub
   ========================================================================== */

.hero-scroll-container {
  position: relative;
  width: 100%;
  height: 480vh; /* Calibrated sticky runway so unboxing finishes completely before unpinning */
  background: radial-gradient(circle at 50% 50%, #3d0711 0%, #200408 55%, #140205 100%);
  z-index: 10;
}

.hero-sticky-viewport {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* Master 60fps/120fps Canvas */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  transform-origin: center center;
  will-change: transform;
}

/* Atmospheric Lighting & Velvet Vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(20, 2, 6, 0.35) 75%, rgba(10, 1, 3, 0.75) 100%),
              linear-gradient(to bottom, rgba(16, 2, 5, 0.35) 0%, transparent 18%, transparent 75%, rgba(16, 2, 5, 0.7) 100%);
}

.hero-volumetric-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background: radial-gradient(circle at 50% 48%, rgba(255, 220, 160, 0.22) 0%, rgba(197, 160, 89, 0.1) 35%, transparent 65%);
  mix-blend-mode: screen;
  transition: opacity 0.35s ease;
}

/* ==========================================================================
   CSS/SVG LUXURY UNBOXING FALLBACK
   Renders automatically if image frames take time to load or are unavailable
   ========================================================================== */
.hero-svg-unboxing {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform-style: preserve-3d;
  transition: opacity 0.5s ease;
}

.hero-svg-box-wrap {
  position: relative;
  width: min(520px, 85vw);
  aspect-ratio: 16/10;
  transform-style: preserve-3d;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.65));
}

.svg-box-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FDFBF7 0%, #F7F2E8 60%, #E8DFD0 100%);
  border-radius: 4px;
  border: 1px solid rgba(216, 203, 184, 0.4);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.8), inset 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.svg-box-lid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FFFDF9 0%, #F7F2E8 55%, #ECE2D2 100%);
  border-radius: 4px;
  border: 1px solid rgba(216, 203, 184, 0.5);
  transform-origin: top center;
  transition: transform 0.1s linear;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.svg-box-ribbon-v {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 100%;
  background: linear-gradient(90deg, #5B0F1D 0%, #7A1728 50%, #5B0F1D 100%);
  box-shadow: 0 0 10px rgba(122, 23, 40, 0.4);
}

.svg-box-ribbon-h {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 44px;
  background: linear-gradient(180deg, #5B0F1D 0%, #7A1728 50%, #5B0F1D 100%);
  box-shadow: 0 0 10px rgba(122, 23, 40, 0.4);
}

.svg-box-bow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  z-index: 5;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.svg-lid-logo {
  position: relative;
  z-index: 6;
  max-width: 160px;
  margin-top: 15px;
}

.svg-interior-glow {
  position: absolute;
  inset: 15px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 235, 180, 0.7) 0%, rgba(212, 175, 55, 0.3) 50%, transparent 80%);
  border-radius: 4px;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

/* Floating Products in Fallback Box */
.svg-floating-product {
  position: absolute;
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  transition: transform 0.2s linear, opacity 0.2s linear;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
  z-index: 3;
}

/* ==========================================================================
   HEADLINE, TAGLINE & HERO BRAND PRESENTATION
   Prominently visible on load, responding naturally to scroll
   ========================================================================== */
.hero-stage-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Act 1: Master Introduction (Immediately Visible On Load!) */
.hero-intro-wrap {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--header-height) + 1.5rem) 2rem 2.5rem;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-intro-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.hero-intro-arabic-mark {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.hero-intro-arabic-mark:hover {
  transform: scale(1.05);
}

.hero-intro-badge {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #EAD8B7;
  opacity: 0.95;
}

/* Center Editorial Announcement (Clean, Minimal, Directly Over Animation — No Card/Box) */
.hero-intro-content,
.hero-text-wrap {
  text-align: center;
  max-width: 900px;
  pointer-events: auto;
  margin-top: auto;
  margin-bottom: 2.25rem;
  background: none !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform 0.4s var(--ease-cinematic), opacity 0.4s var(--ease-cinematic);
}

.hero-intro-eyebrow,
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #EAD8B7;
  margin-bottom: 1.15rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.hero-intro-eyebrow svg,
.hero-eyebrow svg {
  width: 11px;
  height: 11px;
  fill: #EAD8B7;
}

.hero-intro-title,
.hero-title {
  color: var(--color-soft-ivory);
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-intro-subhead,
.hero-subhead {
  color: rgba(247, 242, 232, 0.95);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 350;
  line-height: 1.6;
  max-width: 660px;
  margin: 0 auto 2.25rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.hero-intro-actions,
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Scroll Prompt Indicator */
.hero-scroll-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.scroll-prompt-text {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-soft-ivory);
  opacity: 0.85;
}

.scroll-prompt-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, #EAD8B7, transparent);
  animation: promptPulse 2.2s infinite ease-in-out;
}

@keyframes promptPulse {
  0% { transform: scaleY(0.2); transform-origin: top; opacity: 0.2; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.2; }
}

/* Act 2: Unveiling Chapter Narrative (Scroll ~35%) */
.act2-narrative-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding: 0 2rem;
}

.act2-narrative-overlay.visible {
  opacity: 1;
  transform: translateY(0);
}

.act2-narrative-card {
  max-width: 680px;
  text-align: center;
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.act2-title {
  color: var(--color-soft-ivory);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.act2-desc {
  color: rgba(247, 242, 232, 0.88);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

/* Act 3: Floating Product Annotations (Scroll ~60% - 80%) */
.hero-product-callouts {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-product-callouts.visible {
  opacity: 1;
}

.product-callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: auto;
}

.hero-product-callouts.visible .product-callout {
  opacity: 1;
  transform: translateY(0);
}

.callout-left {
  left: clamp(2rem, 7vw, 9rem);
  top: 36%;
}

.callout-right {
  right: clamp(2rem, 7vw, 9rem);
  bottom: 34%;
  flex-direction: row-reverse;
}

.callout-hairline {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, #EAD8B7, transparent);
}

.callout-right .callout-hairline {
  background: linear-gradient(270deg, #EAD8B7, transparent);
}

.callout-glass {
  background: rgba(26, 3, 8, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(234, 216, 183, 0.24);
  padding: 1.15rem 1.45rem;
  border-radius: 4px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 250px;
}

.callout-num {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #EAD8B7;
}

.callout-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-soft-ivory);
  line-height: 1.25;
}

.callout-detail {
  font-size: 0.8rem;
  color: rgba(247, 242, 232, 0.75);
  line-height: 1.4;
}

/* Act 4: The Elevated Suite Finale (Scroll ~85% - 100%) */
.act4-finale-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(3.5rem, 8vh, 6.5rem);
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.act4-finale-overlay.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.act4-finale-content {
  text-align: center;
  max-width: 820px;
  padding: 0 !important;
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Chapter Stage Rail */
.hero-stage-rail {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  pointer-events: auto;
}

.stage-dot-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row-reverse;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.stage-dot-wrap:hover,
.stage-dot-wrap.active {
  opacity: 1;
  transform: translateX(-4px);
}

.stage-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-soft-ivory);
  transition: all 0.35s ease;
  box-shadow: 0 0 8px rgba(247, 242, 232, 0.4);
}

.stage-dot-wrap.active .stage-dot {
  width: 8px;
  height: 8px;
  background-color: #EAD8B7;
  box-shadow: 0 0 12px #EAD8B7;
}

.stage-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-soft-ivory);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.stage-dot-wrap:hover .stage-label,
.stage-dot-wrap.active .stage-label {
  opacity: 0.9;
  transform: translateX(0);
}

/* Top Progress / Loader Line */
.hero-loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #7A1728, #C5A059, #F7F2E8);
  width: 0%;
  z-index: 50;
  transition: width 0.2s ease, opacity 0.5s ease 0.3s;
}

.hero-loader-bar.done {
  opacity: 0;
}

/* Mobile & Tablet Optimizations */
@media (max-width: 1024px) {
  .hero-stage-rail {
    display: none;
  }
  .callout-left {
    left: 1.5rem;
    top: 24%;
  }
  .callout-right {
    right: 1.5rem;
    bottom: 24%;
  }
}

@media (max-width: 768px) {
  .hero-scroll-container {
    height: 400vh;
  }
  .hero-intro-wrap {
    padding: calc(var(--header-height) + 1rem) 1.25rem 2rem;
  }
  .hero-intro-content,
  .hero-text-wrap {
    padding: 0 !important;
    margin-bottom: 1.5rem;
  }
  .hero-intro-title,
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-intro-subhead,
  .hero-subhead {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .hero-intro-actions,
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-intro-actions .btn,
  .hero-actions .btn {
    width: 100%;
  }
  .act2-narrative-card,
  .act4-finale-content {
    padding: 0 !important;
  }
  .product-callout {
    position: static;
    margin: 0 auto;
    width: 90%;
  }
  .hero-product-callouts {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: center;
    padding: 0 1rem;
  }
}
