/* ==========================================================
   our-story.css — Colony Creative
   Immersive narrative storytelling page (BEM)
   ========================================================== */

.our-story {
  background: var(--bg);
  min-height: 100vh;
}

/* ── Hero ────────────────────────────────────────────────── */

.our-story__hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  min-height: 60svh;
  padding: clamp(5rem, 10vh, 8rem) clamp(24px, 5vw, 80px);
  text-align: center;
  overflow: hidden;
}

/* Wireframe owl fixed bottom-right — persists while scrolling */
.our-story__owl-fixed {
  position: fixed;
  top: 150px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.our-story__hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}

.our-story__hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  margin: 0;
  will-change: transform, opacity;
}

.our-story__hero-line {
  width: 60px;
  height: 1px;
  background: var(--text-primary);
  margin: clamp(1.25rem, 2vh, 1.75rem) 0;
  transform-origin: center;
  opacity: 0.2;
}

.our-story__hero-sub {
  font-family: 'DM Mono', monospace;
  font-size: clamp(0.6875rem, 0.9vw, 0.8125rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.7;
  will-change: transform, opacity;
}

/* ── Scroll indicator ────────────────────────────────────── */

.our-story__scroll-indicator {
  position: absolute;
  bottom: clamp(2rem, 4vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  z-index: 2;
}

.our-story__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent 0%, var(--text-muted) 100%);
  animation: ourStoryScrollPulse 2.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  transform-origin: top center;
}

@keyframes ourStoryScrollPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.15; }
  50% { transform: scaleY(1); opacity: 0.4; }
}

.our-story__scroll-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Narrative container ─────────────────────────────────── */

.our-story__narrative {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
}

/* Vertical line threading through chapters */
.our-story__narrative::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(24px, 5vw, 48px);
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--border-subtle) 5%,
    var(--border-subtle) 95%,
    transparent 100%
  );
}

/* ── Chapter ─────────────────────────────────────────────── */

.our-story__chapter {
  position: relative;
  padding: clamp(5rem, 10vh, 8rem) 0;
}

/* Divider between chapters */
.our-story__chapter + .our-story__chapter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle);
}

.our-story__chapter-container {
  padding-left: clamp(2rem, 4vw, 3.5rem);
}

.our-story__chapter-num {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  will-change: transform, opacity;
}

.our-story__chapter-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0 0 1.5rem;
  will-change: transform, opacity;
}

.our-story__chapter-line {
  width: 40px;
  height: 1px;
  background: var(--text-primary);
  opacity: 0.15;
  margin-bottom: 2rem;
  transform-origin: left center;
}

.our-story__chapter-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.our-story__chapter-paragraph {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
  max-width: 580px;
  will-change: transform, opacity;
}

/* Short punchy lines — bigger, bolder, primary color */
.our-story__punch-line {
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Tagline — secondary emphasis under the final statement */
.our-story__tagline {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* ── Final chapter — centered, dramatic ────────────────── */

.our-story__chapter--final {
  text-align: center;
  padding: clamp(8rem, 16vh, 14rem) 0 clamp(4rem, 8vh, 6rem);
}

.our-story__chapter--final .our-story__chapter-container {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.our-story__chapter--final .our-story__chapter-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.our-story__chapter--final .our-story__chapter-line {
  transform-origin: center;
}

.our-story__chapter--final .our-story__chapter-paragraph {
  max-width: 100%;
}

.our-story__chapter--final .our-story__punch-line {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
}

.our-story__chapter--final .our-story__tagline {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.our-story__chapter--final .our-story__back-button {
  margin-top: 2rem;
  align-self: center;
  width: auto;
}

.our-story__back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.875rem 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform, opacity;
}

.our-story__back-button:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-surface);
}

.our-story__back-arrow {
  font-size: 0.875rem;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.our-story__back-button:hover .our-story__back-arrow {
  transform: translateX(-3px);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .our-story__hero {
    min-height: 50vh;
    min-height: 50svh;
  }

  .our-story__hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .our-story__owl-fixed {
    opacity: 0.12;
  }

  .our-story__narrative::before {
    display: none;
  }

  .our-story__chapter-container {
    padding-left: 0;
  }

  .our-story__chapter {
    padding: clamp(3.5rem, 8vh, 5rem) 0;
  }

  .our-story__chapter--final {
    padding: clamp(5rem, 10vh, 8rem) 0 clamp(3rem, 6vh, 4rem);
  }
}

/* ── Reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .our-story__hero-title,
  .our-story__hero-line,
  .our-story__hero-sub,
  .our-story__chapter-num,
  .our-story__chapter-title,
  .our-story__chapter-line,
  .our-story__chapter-paragraph,
  .our-story__tagline,
  .our-story__back-button {
    opacity: 1 !important;
    transform: none !important;
  }
}
