/* ============================================
   OUR STORY — Full-screen editorial overlay
   ============================================ */

.story-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 300;
  background: var(--rich-dark);
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
}

.story-overlay.is-active {
  pointer-events: auto;
}

/* Scrollable inner — must bypass Lenis */
.story-overlay__scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Lenis ignore — allow native scroll inside overlay */
.story-overlay__scroll[data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* Hide scrollbar but keep functional */
.story-overlay__scroll::-webkit-scrollbar {
  width: 3px;
}

.story-overlay__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.story-overlay__scroll::-webkit-scrollbar-thumb {
  background: rgba(196, 168, 124, 0.3);
}

/* ---- Close button ---- */
.story-overlay__close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  z-index: 301;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease 0.6s;
}

.story-overlay.is-active .story-overlay__close {
  opacity: 1;
}

.story-overlay__close span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--warm-ivory);
  position: absolute;
  top: 50%;
  left: 50%;
  transition: background 0.3s ease;
}

.story-overlay__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.story-overlay__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.story-overlay__close:hover span {
  background: var(--gold);
}

/* ---- Hero section ---- */
/* Hero: split layout — image left, title right */
.story-overlay__hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.story-overlay__hero-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 80px var(--side-pad) 40px;
}

.story-overlay__hero-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.story-overlay__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-overlay__hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-overlay__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--warm-ivory);
  margin-top: 16px;
  margin-bottom: 20px;
}

.story-overlay__hero-intro {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(245, 240, 235, 0.6);
}

/* Scroll hint */
.story-overlay__scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 0;
  margin-top: auto;
}

.story-overlay__scroll-hint span {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.3);
}

.story-overlay__scroll-hint-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(196, 168, 124, 0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ---- Chapter block ---- */
.story-overlay__chapter {
  padding: 80px var(--side-pad);
}

.story-overlay__chapter-inner {
  max-width: 600px;
  margin: 0 auto;
}

.story-overlay__chapter-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 300;
  color: rgba(196, 168, 124, 0.12);
  line-height: 1;
  display: block;
  margin-bottom: -8px;
}

.story-overlay__chapter-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--warm-ivory);
  margin-bottom: 24px;
  line-height: 1.2;
}

.story-overlay__chapter-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(245, 240, 235, 0.6);
  margin-bottom: 20px;
}

.story-overlay__chapter-text:last-child {
  margin-bottom: 0;
}

/* ---- Spread: image + text side by side ---- */
.story-overlay__spread {
  padding: 40px var(--side-pad) 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.story-overlay__spread-image {
  width: 100%;
  overflow: hidden;
}

.story-overlay__spread-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.story-overlay__spread-text {
  max-width: 600px;
}

/* ---- Milestones ---- */
.story-overlay__milestones {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 60px var(--side-pad);
  border-top: 1px solid rgba(196, 168, 124, 0.1);
  border-bottom: 1px solid rgba(196, 168, 124, 0.1);
}

.story-overlay__milestone {
  text-align: center;
}

.story-overlay__milestone-num {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.story-overlay__milestone-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.4);
}

/* ---- Closing ---- */
.story-overlay__closing {
  padding: 80px var(--side-pad);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.story-overlay__closing-quote {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--warm-ivory);
  margin-bottom: 40px;
}

.story-overlay__closing-sig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.story-overlay__closing-script {
  font-family: var(--font-script);
  font-size: 32px;
  color: var(--gold);
}

.story-overlay__closing-meta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.4);
}

/* ---- Desktop ---- */
@media (min-width: 768px) {
  .story-overlay__close {
    top: 32px;
    right: 40px;
  }

  .story-overlay__hero-top {
    flex-direction: row;
    gap: 64px;
    padding: 100px 60px 40px;
    flex: 1;
  }

  .story-overlay__hero-image {
    width: 45%;
    height: auto;
    flex-shrink: 0;
  }

  .story-overlay__hero-content {
    width: 55%;
  }

  .story-overlay__title {
    font-size: 56px;
    margin-bottom: 28px;
  }

  .story-overlay__hero-intro {
    font-size: 16px;
    max-width: 480px;
  }

  .story-overlay__chapter {
    padding: 120px 40px;
  }

  .story-overlay__chapter-num {
    font-size: 100px;
    margin-bottom: -16px;
  }

  .story-overlay__chapter-title {
    font-size: 36px;
  }

  .story-overlay__chapter-text {
    font-size: 16px;
  }

  .story-overlay__spread {
    flex-direction: row;
    align-items: center;
    gap: 64px;
    padding: 40px 60px 120px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .story-overlay__spread-image {
    width: 50%;
    flex-shrink: 0;
  }

  .story-overlay__spread-image img {
    aspect-ratio: 3 / 4;
  }

  .story-overlay__spread-text {
    width: 50%;
  }

  .story-overlay__milestones {
    gap: 80px;
    padding: 80px 40px;
  }

  .story-overlay__milestone-num {
    font-size: 48px;
  }

  .story-overlay__milestone-label {
    font-size: 11px;
  }

  .story-overlay__closing {
    padding: 120px 40px;
  }

  .story-overlay__closing-quote {
    font-size: 32px;
  }

  .story-overlay__closing-script {
    font-size: 40px;
  }
}
