/* ==========================================================================
   Page: About / Our Story (Premium)
   ========================================================================== */

.story-hero {
  position: relative;
  height: 50vh;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-color: var(--color-surface);
}

.story-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-hero);
}

.story-hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-6);
}

/* ---- Brand Narrative: sticky image + scroll-linked paragraph swap (v1.2) ----
   See js/about-narrative.js. */
.brand-narrative {
  padding-block: var(--space-9);
  border-bottom: 1px solid var(--color-border);
}

.brand-narrative__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.brand-narrative__sticky {
  position: sticky;
  top: 120px;
  height: 80vh;
  max-height: 640px;
}

.brand-narrative__image-stack {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-surface);
}

.brand-narrative__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms var(--ease-standard);
}

.brand-narrative__image.is-active {
  opacity: 1;
}

.brand-narrative__step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.35;
  transform: translateY(8px);
  transition: opacity 400ms var(--ease-standard),
    transform 400ms var(--ease-standard);
}

.brand-narrative__step:last-child {
  min-height: 50vh;
}

.brand-narrative__step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.brand-narrative__step p {
  margin-top: var(--space-2);
}

@media (prefers-reduced-motion: reduce) {
  .brand-narrative__step {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .brand-narrative__image {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .brand-narrative__sticky {
    top: 76px;
    height: 60vh;
  }

  .brand-narrative__step {
    min-height: 50vh;
  }

  .brand-narrative__step:last-child {
    min-height: 40vh;
  }
}

/* Mobile simplification: sticky pin + scroll-linked crossfade give way to a
   simpler, non-pinned stacked layout — heavier scroll-linked effects are
   simplified on smaller/slower devices. The image still swaps per active
   step (js/about-narrative.js keeps running), it just no longer pins. */
@media (max-width: 767px) {
  .brand-narrative__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .brand-narrative__sticky {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
  }

  .brand-narrative__image-stack {
    aspect-ratio: 4 / 3;
  }

  .brand-narrative__step {
    min-height: 0;
    padding-block: var(--space-3);
    opacity: 1;
    transform: none;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.team-card {
  text-align: center;
}

.team-card__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-surface);
  margin-bottom: var(--space-2);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
}

.team-card__role {
  color: var(--color-primary);
}

@media (max-width: 767px) {
  .story-hero {
    height: 40vh;
    min-height: 280px;
  }
}
