/* ==========================================================================
   WTMA — Section Metamorphosis (From Thread to Garment)
   Apple-Style Canvas Sequence & Sticky Scroll Stage
   ========================================================================== */

.section-metamorphosis {
  position: relative;
  height: 320vh; /* Smooth natural scrolling length */
  background-color: #07090e;
  color: #ffffff;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

/* Sticky Screen Viewport */
.metamorphosis-sticky-wrap {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #131924 0%, #07090e 70%, #040508 100%);
}

/* Canvas Stage */
.metamorphosis-canvas-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#metamorphosisCanvas {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.98);
}

/* Seamless Vignette Blending into surrounding dark sections */
.metamorphosis-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(7, 9, 14, 0) 35%, rgba(7, 9, 14, 0.6) 75%, #07090e 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   WTMA LOGO REVEAL OVERLAY (Revealed at the bottom upon garment completion)
   ========================================================================== */
.metamorphosis-logo-overlay {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translate(-50%, 36px) scale(0.95);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.metamorphosis-logo-overlay.is-revealed {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: all;
}

.meta-logo-box {
  position: relative;
  background: rgba(11, 16, 25, 0.88);
  border: 1px solid rgba(224, 68, 52, 0.4);
  box-shadow: 0 0 35px rgba(224, 68, 52, 0.35), 0 25px 50px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 22px 42px;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.meta-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-accent-red, #e04434);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 5px 16px;
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(224, 68, 52, 0.5);
}

.meta-brand-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-transform: uppercase;
  margin-top: 4px;
}

.meta-brand-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
  margin: 4px 0;
}

.meta-brand-slogan {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #f59e0b;
}

/* ==========================================================================
   RESPONSIVE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 1024px) {
  .section-metamorphosis {
    height: 280vh;
  }
  .metamorphosis-logo-overlay {
    bottom: 36px;
  }
  .meta-logo-box {
    padding: 18px 30px;
  }
}

@media (max-width: 768px) {
  .section-metamorphosis {
    height: 240vh;
  }
  .metamorphosis-logo-overlay {
    bottom: 24px;
    width: 92%;
    max-width: 360px;
  }
  .meta-logo-box {
    padding: 14px 20px;
    gap: 6px;
  }
  .meta-brand-badge {
    font-size: 1rem;
    padding: 4px 14px;
  }
  .meta-brand-title {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }
  .meta-brand-slogan {
    font-size: 0.95rem;
  }
}

