/* ═══════════════════════════════════════════════════════════════
   SS BUILDERS MVS — Modular Kitchen Immersive Experience
   Scroll-driven cinematic canvas section
   ═══════════════════════════════════════════════════════════════ */

/* ── Section Container ──────────────────────────────────────── */
.kitchen-experience {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #090909;
  z-index: 1;
}

/* Architectural noise texture + vignette */
.kitchen-experience::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 3;
}

.kitchen-experience::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
  z-index: 4;
  transition: opacity 1.5s ease;
}

/* ── Canvas ──────────────────────────────────────────────────── */
.kitchen-experience__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ── Loading State ───────────────────────────────────────────── */
.kitchen-experience__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  transition: opacity 0.6s ease;
}

.kitchen-experience__loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.kitchen-experience__loader-bar {
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.kitchen-experience__loader-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.3s ease;
}

.kitchen-experience__loader-text {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Text Overlays ───────────────────────────────────────────── */
.kitchen-experience__overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.kitchen-experience__text {
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  max-width: 900px;
  padding: 0 2rem;
}

.kitchen-experience__text.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Phase 1 — Hero Title */
.kitchen-experience__title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #e6d3a8 50%, #c4a773 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 1.25rem 0;
}

.kitchen-experience__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Phase 2 — Feature List */
.kitchen-experience__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.kitchen-experience__feature {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.kitchen-experience__feature:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #e6d3a8;
  text-transform: none;
  margin-bottom: 0.75rem;
}

/* Phase 3 — CTA */
.kitchen-experience__cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin: 0 0 2.5rem 0;
}

.kitchen-experience__cta-btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: #090909;
  background: linear-gradient(135deg, #e6d3a8 0%, #c4a773 100%);
  border: none;
  border-radius: 2px;
  padding: 1.25rem 3rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(196, 167, 115, 0.15);
}

.kitchen-experience__cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f5ebd6 0%, #d8c296 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.kitchen-experience__cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(196, 167, 115, 0.35);
}

.kitchen-experience__cta-btn:hover::before {
  opacity: 1;
}

/* ── Scroll Indicator ────────────────────────────────────────── */
.kitchen-experience__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.kitchen-experience__scroll.is-visible {
  opacity: 1;
}

.kitchen-experience__scroll-text {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.kitchen-experience__scroll-line {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.kitchen-experience__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  animation: kitchenScrollLine 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes kitchenScrollLine {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .kitchen-experience__title {
    letter-spacing: 0.08em;
  }

  .kitchen-experience__cta-btn {
    padding: 0.875rem 2rem;
    font-size: 0.75rem;
  }

  .kitchen-experience__scroll {
    bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .kitchen-experience__feature:first-child {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .kitchen-experience__features {
    gap: 0.625rem;
  }
}

/* ── Reduced Motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .kitchen-experience__text {
    transition: opacity 0.3s ease;
    transform: none !important;
  }

  .kitchen-experience__scroll-line::after {
    animation: none;
  }
}
