/* ==========================================================================
   S-KO — 4 ESSENTIAL STEPS SECTION
   Aligned with S-KO Luxury Editorial Design System, Typography & Color Matrix
   ========================================================================== */

/* ==========================================================================
   Steps Section Main Wrapper (Strictly Bounded to Prevent Bleed)
   ========================================================================== */
.steps {
  position: relative;
  padding: 130px 0 16vh;
  background: linear-gradient(180deg, var(--bg, #ffffff) 0%, var(--bg-surface-2, #fbfbfa) 50%, var(--bg, #ffffff) 100%);
  color: var(--text-primary, #111412);
  overflow: clip; /* Strictly contains sticky elements within this section */
}

@media (max-width: 1100px) {
  .steps {
    padding: 70px 0 12vh;
  }
}

@media (max-width: 768px) {
  .steps {
    padding: 70px 0 10vh;
  }
}

.steps .container,
.steps-container {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .steps .container,
  .steps-container {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  .steps .container,
  .steps-container {
    padding: 0 16px;
  }
}

/* Atmospheric Ambient Background Layers */
.steps .steps-bg1,
.steps .steps-bg2 {
  position: absolute;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  z-index: 1;
  opacity: 0.55;
}

.steps .steps-bg1 {
  top: -180px;
  right: -5%;
  width: 55vw;
  max-width: 850px;
}

.steps .steps-bg2 {
  bottom: 80px;
  left: -5%;
  width: 65vw;
  max-width: 1000px;
}

/* ==========================================================================
   Steps Title Header (Number 4 + S-KO Editorial Heading)
   ========================================================================== */
.steps__title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 130px;
  position: relative;
  z-index: 3;
}

@media (max-width: 1100px) {
  .steps__title {
    margin-bottom: 80px;
  }
}

@media (max-width: 768px) {
  .steps__title {
    margin-top: 30px;
    margin-bottom: 60px;
    flex-direction: column;
    text-align: center;
  }
}

.steps__title_number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 32px;
  color: var(--pantone-sky, #a2c7e2);
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: clamp(140px, 17vw, 290px);
  font-style: italic;
  font-weight: 300;
  line-height: 0.82;
  user-select: none;
  text-shadow: 0 10px 30px rgba(162, 199, 226, 0.25);
}

@media (max-width: 1100px) {
  .steps__title_number {
    font-size: clamp(90px, 13vw, 150px);
    margin-right: 18px;
  }
}

@media (max-width: 768px) {
  .steps__title_number {
    margin-right: 0;
    margin-bottom: 6px;
  }
}

.steps__title_wrap {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .steps__title_wrap {
    text-align: center;
    align-items: center;
  }
}

.steps__title_title {
  color: var(--text-primary, #111412);
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: clamp(38px, 5.2vw, 88px);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

.steps__title_descr {
  color: var(--text-secondary, #3e4842);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 768px) {
  .steps__title_descr {
    font-size: 16px;
    max-width: 100%;
  }
}

/* ==========================================================================
   Sticky Main Stage & Crystal Glass Liquid Bubble
   ========================================================================== */
.steps__main {
  position: relative;
  z-index: 2;
  padding-bottom: 25vh;
}

.steps__sticky {
  position: sticky;
  top: 15vh;
  left: 0;
  width: 100%;
  height: 70vh;
  margin-bottom: -70vh;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1100px) {
  .steps__sticky {
    top: 18vh;
    height: 64vh;
    margin-bottom: -64vh;
  }
}

/* Bubble Wrapper (Controlled by JS Physics / Scroll Lerp) */
.stem-bubble-wrapper {
  position: relative;
  width: 440px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  pointer-events: auto;
  transition: width 0.4s ease, height 0.4s ease;
}

@media (max-width: 1100px) {
  .stem-bubble-wrapper {
    width: 360px;
    height: 360px;
  }
}

@media (max-width: 600px) {
  .stem-bubble-wrapper {
    width: 290px;
    height: 290px;
  }
}

/* ==========================================================================
   Crystal-Clear Transparent Liquid Glass Bubble (S-KO Brand Toned)
   ========================================================================== */
.stem-liquid-bubble {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 46% 54% 63% 37% / 40% 60% 40% 60%;
  background: radial-gradient(
    circle at 34% 28%,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(255, 255, 255, 0.0) 58%,
    rgba(225, 240, 250, 0.16) 78%,
    rgba(162, 199, 226, 0.28) 92%,
    rgba(147, 164, 150, 0.35) 100%
  );
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.95),
    inset 0 0 28px rgba(255, 255, 255, 0.45),
    inset -8px -12px 24px rgba(147, 164, 150, 0.18),
    inset 8px 12px 22px rgba(162, 199, 226, 0.28),
    0 25px 60px rgba(17, 20, 18, 0.06),
    0 10px 30px rgba(162, 199, 226, 0.15);
  border: 1.2px solid rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  animation: liquid-stem-wobble 7s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

@keyframes liquid-stem-wobble {
  0% {
    border-radius: 46% 54% 63% 37% / 40% 60% 40% 60%;
    transform: rotate(0deg) scale(1);
  }
  33% {
    border-radius: 54% 46% 38% 62% / 58% 42% 58% 42%;
    transform: rotate(3deg) scale(1.02);
  }
  66% {
    border-radius: 60% 40% 55% 45% / 48% 52% 48% 52%;
    transform: rotate(-3deg) scale(0.98);
  }
  100% {
    border-radius: 42% 58% 48% 52% / 52% 48% 52% 48%;
    transform: rotate(1.5deg) scale(1.01);
  }
}

/* Glass Specular Light Glints (Softbox Studio Reflection) */
.bubble-glass-specular {
  position: absolute;
  top: 9%;
  left: 14%;
  width: 38%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 40%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.5) 45%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(-36deg);
  pointer-events: none;
  filter: blur(0.3px);
}

.bubble-glass-specular-secondary {
  position: absolute;
  bottom: 13%;
  right: 15%;
  width: 28%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 60% 60%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(-25deg);
  pointer-events: none;
}

.bubble-liquid-caustic {
  position: absolute;
  inset: 5%;
  border-radius: inherit;
  background: radial-gradient(circle at 65% 72%, rgba(162, 199, 226, 0.18) 0%, rgba(147, 164, 150, 0.12) 42%, transparent 70%);
  pointer-events: none;
}

.bubble-glass-rim {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.95), inset -2px -2px 6px rgba(162, 199, 226, 0.32);
  pointer-events: none;
}

/* ==========================================================================
   Product Stack Floating Inside Bubble (100% Visible & Crisp)
   ========================================================================== */
.bubble-products-stack {
  position: relative;
  width: 84%;
  height: 84%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bubble-product-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.92) rotate(-5deg);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.bubble-product-item.active {
  opacity: 1;
  transform: scale(1) rotate(-2deg);
  pointer-events: auto;
}

.bubble-product-img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(17, 20, 18, 0.14));
  user-select: none;
  -webkit-user-drag: none;
}

.bubble-product-item.duo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.bubble-product-item.duo-wrap .duo-left {
  max-width: 47%;
  max-height: 88%;
  transform: rotate(-5deg);
}

.bubble-product-item.duo-wrap .duo-right {
  max-width: 47%;
  max-height: 88%;
  transform: rotate(5deg);
}

/* ==========================================================================
   S-KO Official CTA Button (Appears gracefully in Expand zone)
   ========================================================================== */
.steps__shop.button {
  position: absolute;
  left: 50%;
  bottom: -40px;
  min-width: 250px;
  padding: 1rem 2.2rem;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  z-index: 25;
  background-color: var(--accent-primary, #a73439);
  color: var(--text-inverse, #ffffff);
  border: 1px solid var(--accent-primary, #a73439);
  border-radius: var(--radius-full, 9999px);
  box-shadow: 0 10px 30px var(--accent-primary-glow, rgba(167, 52, 57, 0.28));
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-subheading, 'Montserrat', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-fast, all 0.25s cubic-bezier(0.16, 1, 0.3, 1));
}

@media (max-width: 1100px) {
  .steps__shop.button {
    bottom: -30px;
    min-width: 220px;
    padding: 0.85rem 1.8rem;
    font-size: 0.82rem;
  }
}

.steps__shop.button:hover {
  background-color: var(--accent-primary-hover, #8e2b30);
  border-color: var(--accent-primary-hover, #8e2b30);
  color: #ffffff !important;
  transform: translate(-50%, 0) translateY(-2px);
  box-shadow: 0 14px 35px rgba(167, 52, 57, 0.4);
}

.steps__shop.button span {
  display: inline-block;
  color: #ffffff;
  font-weight: 700;
}

/* ==========================================================================
   Steps Content Wrapper & Pure Minimalist Step Blocks
   ========================================================================== */
.steps .steps__wrapper {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.steps .steps__expand {
  height: 100vh;
  position: relative;
  z-index: 0;
}

/* Individual Step Block Styling (Clean Luxury Minimalist Style) */
.steps .steps-block {
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
  max-width: 100%;
  width: 520px;
  position: relative;
  z-index: 5;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  transition: opacity 0.4s ease;
}

@media (max-width: 1100px) {
  .steps .steps-block {
    width: 100%;
    padding: 0;
  }
}

/* Alternating Margins / Layout */
.steps .steps-block:first-child {
  margin: 0 0 320px auto;
}

@media (max-width: 1100px) {
  .steps .steps-block:first-child {
    margin: 180px auto 0;
  }
}

.steps .steps-block:nth-child(2) {
  margin: 0 auto 320px 0;
}

@media (max-width: 1100px) {
  .steps .steps-block:nth-child(2) {
    margin: 0 auto;
    margin-top: 240px;
  }
}

.steps .steps-block:nth-child(3) {
  margin: 0 0 320px auto;
}

@media (max-width: 1100px) {
  .steps .steps-block:nth-child(3) {
    margin: 0 auto;
    margin-top: 240px;
  }
}

.steps .steps-block:nth-child(4) {
  margin: 0 auto 0 0;
}

@media (max-width: 1100px) {
  .steps .steps-block:nth-child(4) {
    margin: 0 auto;
    margin-top: 240px;
  }
}

/* Step Block Typography Elements (S-KO Editorial System) */
.steps .steps-block__number {
  color: var(--pantone-sky, #a2c7e2);
  flex-shrink: 0;
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: clamp(80px, 8vw, 130px);
  font-style: italic;
  font-weight: 300;
  line-height: 0.82;
  margin-right: 30px;
  user-select: none;
  text-shadow: 0 8px 24px rgba(162, 199, 226, 0.2);
}

@media (max-width: 1100px) {
  .steps .steps-block__number {
    font-size: clamp(60px, 9vw, 84px);
    margin-right: 18px;
  }
}

.steps .steps-block__wrapper {
  min-width: 0;
  width: 100%;
}

.steps .steps-block__title {
  color: var(--text-primary, #111412);
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

@media (max-width: 1100px) {
  .steps .steps-block__title {
    font-size: 24px;
    margin-bottom: 6px;
  }
}

.steps .steps-block__subtitle {
  color: var(--pantone-forest, #375542);
  font-family: var(--font-subheading, 'Montserrat', sans-serif);
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

@media (max-width: 1100px) {
  .steps .steps-block__subtitle {
    font-size: 12px;
    margin-bottom: 12px;
  }
}

.steps .steps-block__descr {
  color: var(--text-secondary, #3e4842);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.7;
  margin: 0;
  max-width: 480px;
  font-weight: 400;
}

@media (max-width: 1100px) {
  .steps .steps-block__descr {
    font-size: 15px;
    max-width: 100%;
  }
}

/* Step 4 Animated Scroll Indicator */
.steps .steps-block__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 35px;
}

.steps .steps-block__scroll-icon {
  flex-shrink: 0;
  height: 20px;
  width: 16px;
  position: relative;
  overflow: hidden;
}

.steps .steps-block__scroll-track {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
  animation: steps-scroll-arrow 2.5s ease-in-out infinite;
  will-change: transform;
}

.steps .steps-block__scroll-arrow {
  color: var(--text-muted, #727c76);
  flex-shrink: 0;
  height: 20px;
  width: 12px;
  position: relative;
}

.steps .steps-block__scroll-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

.steps .steps-block__scroll-text {
  color: var(--text-muted, #727c76);
  font-family: var(--font-subheading, 'Montserrat', sans-serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@keyframes steps-scroll-arrow {
  0% { transform: translateY(-100%); }
  38% { transform: translateY(-100%); }
  62% { transform: translateY(0); }
  100% { transform: translateY(0); }
}
