/* ============================================================
   The Bright Vibes Coworking — About / Our Story page
   Dark treatment, matching the approved design direction — same
   --ink/--paper/--mid/--line-dark tokens and Big Shoulders Display +
   Karla pairing already used for the site's other dark sections
   (hero, reviews, footer), just applied to the whole page instead of
   one band.
   ============================================================ */

body.about-page { background: var(--ink); color: rgba(255,255,255,0.88); }

/* ---------- Header, forced to its dark/on-photo state ----------
   This page has no light content behind the header (the whole page is
   ink), so the header should never flip to the light .is-scrolled
   look. base site.js still toggles .is-scrolled on scroll — harmless
   here since .on-dark matches those rules and simply wins regardless
   of scroll position (loaded after style.css). */
.site-header.on-dark { background: var(--ink); box-shadow: 0 1px 0 var(--line-dark); }
.site-header.on-dark .brand-mark--dark { display: none; }
.site-header.on-dark .brand-mark--light { display: block; }
.site-header.on-dark .brand-word { color: var(--paper); }
.site-header.on-dark .main-nav a { color: var(--paper); }
.site-header.on-dark .btn--nav { color: var(--paper); border-color: rgba(255,255,255,0.7); }
.site-header.on-dark .btn--nav:hover { background: rgba(255,255,255,0.12); }
.site-header.on-dark .nav-toggle span { background: var(--paper); }
.site-header.on-dark .mobile-nav { background: var(--ink); border-top-color: var(--line-dark); }
.site-header.on-dark .mobile-nav a { color: var(--paper); border-bottom-color: var(--line-dark); }

/* ---------- Intro ---------- */
.story-hero {
  max-width: var(--max); margin: 0 auto;
  padding: calc(var(--header-h) + 56px) 20px 10px;
}
.story-hero .eyebrow { color: var(--mid); }
.story-h1 {
  font-size: clamp(32px, 6vw, 58px); line-height: 1.05;
  max-width: 780px; margin-bottom: 32px; color: var(--paper);
}
.story-diff {
  max-width: 680px; border-top: 1px solid var(--line-dark); padding-top: 26px;
}
.story-diff p {
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  color: rgba(255,255,255,0.72); margin: 0;
}
.story-diff strong { color: var(--paper); font-weight: 700; }

/* ---------- Map / journey ---------- */
.story-map {
  max-width: var(--max); margin: 0 auto;
  padding: 64px 20px 10px; border-top: 1px solid var(--line-dark);
}
.story-map-head { margin-bottom: 8px; }
.story-title { font-size: clamp(26px, 4.5vw, 38px); margin: 0; color: var(--paper); }

.story-stage {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding: 30px 0 46px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.story-map.is-visible .story-stage { opacity: 1; transform: translateY(0); }

.story-svg-wrap { position: relative; }
.ghost-label {
  font-family: var(--font-body); font-size: 10px; letter-spacing: 0.06em;
  fill: var(--mid); text-transform: uppercase; font-weight: 600;
}
.real-label {
  font-family: var(--font-body); font-size: 11px; fill: var(--paper); font-weight: 700;
  letter-spacing: 0.01em;
}
.story-route { stroke: var(--paper); }
@keyframes storyDrawPath { from { stroke-dashoffset: 620; } to { stroke-dashoffset: 0; } }
.story-map.is-visible .story-route { animation: storyDrawPath 2.6s ease-out forwards; }

.story-legend { display: flex; flex-direction: column; gap: 22px; }
.story-legend-row { display: flex; gap: 16px; align-items: flex-start; }
.story-legend-dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.story-legend-dot.ghost {
  background: transparent; border: 1px dashed var(--mid); color: var(--mid);
}
.story-legend-copy h3 {
  font-size: 16px; font-weight: 700; margin: 0 0 4px; text-transform: none;
  font-family: var(--font-body); color: var(--paper);
}
.story-legend-copy p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.62); max-width: 360px; }
.story-legend-copy .chapter {
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mid); margin-bottom: 3px; display: block;
}

/* ---------- The journey, room by room ---------- */
.story-strip-head { max-width: var(--max); margin: 0 auto; padding: 46px 20px 0; }
.story-strip-head h2 { color: var(--paper); }
.story-strip-head p { font-size: 13px; color: var(--mid); margin-top: 6px; }

.story-strip {
  max-width: var(--max); margin: 0 auto; padding: 26px 20px 100px;
  display: grid; grid-template-columns: 1fr; gap: 22px;
}
@media (min-width: 720px) {
  .story-strip { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}

.story-card {
  background: var(--ink-soft); border: 1px solid var(--line-dark);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.story-strip.is-visible .story-card { opacity: 1; transform: translateY(0); }
.story-strip.is-visible .story-card:nth-child(2) { transition-delay: 0.08s; }
.story-strip.is-visible .story-card:nth-child(3) { transition-delay: 0.16s; }
.story-strip.is-visible .story-card:nth-child(5) { transition-delay: 0.08s; }
.story-strip.is-visible .story-card:nth-child(6) { transition-delay: 0.16s; }

.story-card-photo { height: 200px; overflow: hidden; background: rgba(255,255,255,0.06); }
.story-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-card-photo.is-open {
  border-bottom: 1px dashed var(--line-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid);
}

.story-card-body { padding: 20px 20px 24px; }
.story-num {
  font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 0.9;
  color: var(--paper); opacity: 0.28; margin-bottom: 10px;
}
.story-card-body h4 {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 800;
  font-size: 18px; margin: 0 0 8px; letter-spacing: 0.01em; color: var(--paper);
}
.story-card-body p { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.6); margin: 0; }
.story-card.open .story-card-body h4 { font-style: italic; font-weight: 500; text-transform: none; }

/* ---------- Closing CTA ---------- */
.story-cta {
  max-width: 640px; margin: 0 auto; padding: 20px 24px 110px; text-align: center;
}
.story-cta h2 { font-size: clamp(26px, 4.5vw, 38px); margin-bottom: 14px; color: var(--paper); }
.story-cta p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 26px; }
.story-cta .btn--outline { border-color: rgba(255,255,255,0.7); color: var(--paper); }
.story-cta .btn--outline:hover { background: var(--paper); color: var(--ink); }

@media (min-width: 900px) {
  .story-stage { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .story-stage, .story-card { transition: none; opacity: 1; transform: none; }
  .story-map.is-visible .story-route { animation: none; }
}
