/* ==========================================================================
   AUREEVA — Scroll Story (estilo "M5 / M5 Pro / M5 Max")
   Sección con scroll fijado ("pinned") donde el contenido cambia
   suavemente según el progreso del scroll.
   ========================================================================== */

.scroll-story {
  position: relative;
  background: var(--forest-darkest);
  height: 300vh;
}
@media (max-width: 860px) {
  .scroll-story { height: 260vh; }
}

.scroll-story-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 20%, #3a4d38 0%, #263420 65%, #1c2818 100%);
}

.scroll-story-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

/* Visual (bottle) */
.scroll-story-visual {
  position: relative;
  height: 68%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-story-visual img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  will-change: transform, opacity;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45));
}

/* Text panels, stacked and cross-faded via JS-driven opacity */
.scroll-story-panels {
  position: relative;
  height: 60%;
  min-height: 260px;
}
.scroll-story-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  will-change: opacity, transform;
}
.scroll-story-panel .ss-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 18px;
}
.scroll-story-panel .ss-number {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 1;
  color: var(--cream);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.scroll-story-panel .ss-headline {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.scroll-story-panel .ss-number sup {
  font-size: 0.4em;
  font-weight: 600;
  margin-left: 4px;
  color: var(--sage-deep);
}
.scroll-story-panel p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(251, 250, 243, 0.78);
  max-width: 38ch;
  margin: 0;
}

/* Progress dots */
.scroll-story-progress {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.scroll-story-progress .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(251, 250, 243, 0.28);
  transition: background 0.3s ease, transform 0.3s ease;
}
.scroll-story-progress .dot.active {
  background: var(--sage-deep);
  transform: scale(1.3);
}

/* Mobile */
@media (max-width: 860px) {
  .scroll-story-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding: 0 24px;
    gap: 8px;
  }
  .scroll-story-visual { height: 38%; order: 1; }
  .scroll-story-panels { height: auto; order: 2; min-height: 270px; }
  .scroll-story-panel { text-align: center; align-items: center; }
  .scroll-story-panel .ss-number { font-size: clamp(2.6rem, 11vw, 4.4rem); }
  .scroll-story-panel p { max-width: 38ch; font-size: 0.92rem; }
}

@media (max-width: 420px) {
  .scroll-story-panels { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-story-panel { transition: none; }
  .scroll-story-visual img { transition: none; }
}

/* ---------- Photo variant: one fixed background photo, only the text
   changes as you scroll (used on the home page). ---------- */
.scroll-story--photo { height: 400vh; }
@media (max-width: 860px) {
  .scroll-story--photo { height: 340vh; }
}
.scroll-story--photo .scroll-story-sticky { background: #1c2818; }
.scroll-story-photo-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.scroll-story-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  will-change: transform;
}
.scroll-story-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(18, 24, 14, 0.82) 0%, rgba(18, 24, 14, 0.6) 32%, rgba(18, 24, 14, 0.18) 60%, rgba(18, 24, 14, 0.08) 100%);
}
.scroll-story--photo .scroll-story-inner {
  grid-template-columns: 1fr;
  position: relative;
  z-index: 1;
}
.scroll-story--photo .scroll-story-panels {
  height: 50%;
  min-height: 220px;
  max-width: 600px;
}
@media (max-width: 860px) {
  .scroll-story--photo .scroll-story-inner { padding: 0 24px; }
  .scroll-story--photo .scroll-story-panels { text-align: left; }
  .scroll-story--photo .scroll-story-panel { align-items: flex-start; }
  .scroll-story-photo-bg::after {
    background: linear-gradient(180deg, rgba(18, 24, 14, 0.35) 0%, rgba(18, 24, 14, 0.78) 78%, rgba(18, 24, 14, 0.88) 100%);
  }
  .scroll-story-photo-bg img { object-position: 70% center; }
}
