/* ===== STORY PAGE ===== */

/* ── Hero with parallelogram background ── */
.story-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 4rem;
}

/* Static parallelogram background — reuses intro slice technique */
.story-para-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.story-para-inner {
  position: absolute;
  left: -15vw; right: -15vw;
  top: 0; bottom: 0;
  transform: skewX(-12deg);
  display: flex;
  overflow: hidden;
}
.story-slice {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.story-slice-bg {
  position: absolute;
  inset: 0 -40%;
  transform: skewX(12deg);
  background-size: cover;
  background-position: center 30%;
}
.story-slice--1 .story-slice-bg { background-image: url('../images/cookies/chocchip-hero.jpg'); }
.story-slice--2 .story-slice-bg { background-image: url('../images/cookies/oreo-hero.jpg'); }
.story-slice--3 .story-slice-bg { background-image: url('../images/cookies/mm-hero.jpg'); }

/* Holographic dividers between slices */
.story-slice--2::before,
.story-slice--3::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    hsl(188,70%,68%), hsl(200,20%,88%), hsl(282,65%,70%),
    hsl(195,22%,86%), hsl(158,68%,65%), hsl(200,15%,90%),
    hsl( 38,80%,68%), hsl(200,18%,90%), hsl(322,68%,68%),
    hsl(195,20%,88%), hsl(188,70%,68%)
  );
  filter: brightness(1.35) saturate(1.1);
}

/* Gradient scrim — dark at bottom for legible text */
.story-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(4,3,2,0.25) 0%,
    rgba(4,3,2,0.55) 55%,
    rgba(4,3,2,0.88) 100%
  );
}

.story-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
}

.story-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: #EDD8B0;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(4,2,1,0.85);
}

.story-hero-sub {
  color: rgba(237,216,176,0.8);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(4,2,1,0.7);
}

/* ── Carousel section ── */
.story-carousel-section {
  padding: 0 0 5rem;
  position: relative;
  overflow: hidden;
}

.story-carousel {
  position: relative;
  min-height: 380px;
}

.story-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
  padding: 4rem 0 2rem;
}
.story-panel--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}
.story-panel--exit {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.story-panel-num {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(237,216,176,0.35);
  margin-bottom: 0.75rem;
}
.story-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #EDD8B0;
  margin-bottom: 1.5rem;
}
.story-panel-body {
  color: rgba(237,216,176,0.72);
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 640px;
  margin-bottom: 1rem;
}
.story-panel-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ── Carousel navigation ── */
.story-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 2.5rem;
}

.story-carousel-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(237,216,176,0.22);
  color: rgba(237,216,176,0.7);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.22s ease;
  background: rgba(255,255,255,0.04);
}
.story-carousel-arrow:hover {
  border-color: rgba(237,216,176,0.55);
  color: #EDD8B0;
  background: rgba(255,255,255,0.08);
}

.story-carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.story-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(237,216,176,0.2);
  transition: all 0.22s ease;
  cursor: pointer;
}
.story-dot--active {
  background: rgba(201,168,76,0.85);
  width: 24px;
  border-radius: 4px;
}

/* Nav active */
.nav-active { color: #EDD8B0 !important; }

@media (max-width: 600px) {
  .story-hero { min-height: 45vh; }
  .story-para-inner { left: -10vw; right: -10vw; transform: skewX(-8deg); }
  .story-slice-bg { inset: 0 -25%; transform: skewX(8deg); }
  .story-carousel { min-height: 480px; }
}
