/* About / Our Story — Gluto.ai (uses tokens from style.css) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&display=swap');

body.story-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: #f8fffe;
}

.story-page .story-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(165deg, #ecfdf5 0%, #f8fffe 40%, #fff7ed 85%, #ffffff 100%);
}

.story-page main {
  position: relative;
  z-index: 1;
}

.story-hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.story-hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.story-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 auto 1rem;
  max-width: 18ch;
  color: var(--color-text);
}

.story-hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--color-text-secondary);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

.story-hero-scroll {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  animation: story-fade-nudge 2.5s ease-in-out infinite;
}

@keyframes story-fade-nudge {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}

.story-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.story-section:nth-child(even) {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.story-inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.story-inner-wide {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.story-section h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.story-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 2rem 0 0.5rem;
  letter-spacing: 0.02em;
}

.story-prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.story-prose p {
  margin: 0 0 1.1rem;
}

.story-prose strong {
  color: var(--color-text);
  font-weight: 600;
}

.story-pull {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--color-text);
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-light);
  border-radius: 0 12px 12px 0;
}

.story-album-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 2rem 0 0.75rem;
  text-align: center;
}

.story-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1.25rem auto 0;
  max-width: 72rem;
}

.story-gallery figure {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  flex: 0 0 auto;
  width: 140px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

@media (min-width: 640px) {
  .story-gallery {
    gap: 0.85rem;
  }

  .story-gallery figure {
    width: 180px;
  }
}

.story-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}

.story-gallery figure:hover img {
  transform: scale(1.04);
}

.story-gallery figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.5rem;
  font-size: 0.65rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  opacity: 0;
  transition: opacity 0.2s;
}

.story-gallery figure:hover figcaption {
  opacity: 1;
}

.story-team-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 560px) {
  .story-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.story-team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.story-team-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--color-text);
}

.story-team-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.story-disclaimer {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.story-cta {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 1.25rem;
}

.story-cta h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}

.story-cta p {
  color: var(--color-text-secondary);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.story-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Lightbox */
#story-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
}

#story-lightbox[hidden] {
  display: none !important;
}

#story-lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

#story-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.2s;
}

#story-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}
