/* ─── STORY PAGE STYLES ─────────────────────────────────────────────────────── */
/* Matches theme.css tokens: --navy, --sienna, --teal, --cream, --serif, --sans */

/* ─── NAV ─────────────────────────────────────────────────────────────────── */
.story-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10,22,40,0.7) 0%, transparent 100%);
  backdrop-filter: blur(4px);
}

.story-nav__logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.story-nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.story-nav__links a {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(250,247,242,0.6);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.story-nav__links a:hover {
  color: var(--cream);
}

/* ─── HERO ─────────────────────────────────────────────────────────────────── */
.story-hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.story-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(196,113,59,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(27,94,107,0.2) 0%, transparent 55%);
}

.story-hero__windsystem {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.story-hero__windsystem svg {
  width: 100%;
  height: 100%;
}

.story-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 8vw 7rem;
  max-width: 820px;
}

.story-hero__eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sienna);
  margin-bottom: 2.5rem;
}

.story-hero__headline {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 600;
  line-height: 0.92;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.story-hero__sub {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(250,247,242,0.65);
  max-width: 560px;
}

.story-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 8vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(250,247,242,0.3);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ─── DEFINITION INTERLUDE ─────────────────────────────────────────────────── */
.definition-interlude {
  padding: 7rem 8vw;
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: center;
}

.definition-interlude__swahili {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.01em;
}

.definition-interlude__pronoun {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-lt);
  font-style: italic;
  margin-top: 0.75rem;
}

.definition-interlude__text {
  max-width: 480px;
}

.definition-interlude__text blockquote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--navy);
  border-left: 2px solid var(--sienna);
  padding-left: 1.75rem;
  margin-bottom: 1.5rem;
}

.definition-interlude__text p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-mid);
}

/* ─── CHAPTER ──────────────────────────────────────────────────────────────── */
.story-chapter {
  padding: 7rem 8vw;
}

.story-chapter--dark {
  background: var(--navy);
}

.story-chapter--cream {
  background: var(--cream-dk);
}

.chapter-header {
  margin-bottom: 5rem;
}

.chapter-header__label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sienna);
  margin-bottom: 1.5rem;
}

.chapter-header__title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.story-chapter--dark .chapter-header__title {
  color: var(--cream);
}

.chapter-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.chapter-body--single {
  grid-template-columns: 1fr;
  max-width: 680px;
}

.chapter-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.story-chapter--dark .chapter-body p {
  color: rgba(250,247,242,0.6);
}

.chapter-body__pullquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--cream);
  border-left: 2px solid var(--sienna);
  padding-left: 2rem;
}

.story-chapter--light .chapter-body__pullquote {
  color: var(--navy);
  border-left-color: var(--sienna);
}

/* ─── DIVIDER WAVE ────────────────────────────────────────────────────────── */
.monsoon-divider {
  background: var(--navy);
  padding: 3rem 0;
  overflow: hidden;
}

.monsoon-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* ─── PILLAR SECTION ───────────────────────────────────────────────────────── */
.pillars {
  padding: 7rem 8vw;
  background: var(--cream);
}

.pillars__header {
  margin-bottom: 5rem;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pillar-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cream-dk);
  border-radius: 0;
}

.pillar-card__title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.pillar-card__sub {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sienna);
  margin-bottom: 0.75rem;
}

.pillar-card__body {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-mid);
}

/* ─── TIMELINE ─────────────────────────────────────────────────────────────── */
.story-timeline {
  padding: 7rem 8vw;
  background: var(--cream-dk);
}

.timeline-header {
  margin-bottom: 5rem;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    var(--cream-dk) 5%,
    var(--navy) 50%,
    var(--cream-dk) 95%,
    transparent 100%
  );
}

.timeline-event {
  padding: 0 3rem 0 0;
}

.timeline-event__year {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

.timeline-event__title {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.timeline-event__body {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ─── CLOSING ──────────────────────────────────────────────────────────────── */
.story-closing {
  padding: 10rem 8vw;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.story-closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(196,113,59,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(27,94,107,0.15) 0%, transparent 60%);
  pointer-events: none;
}

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

.story-closing__tagline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 3rem;
}

.story-closing__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.story-closing__cta-primary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(250,247,242,0.3);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.story-closing__cta-primary:hover {
  border-color: var(--sienna);
  background: rgba(196,113,59,0.1);
}

.story-closing__cta-secondary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(250,247,242,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.story-closing__cta-secondary:hover {
  color: rgba(250,247,242,0.85);
}

/* ─── FOOTER ───────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 4rem 8vw;
  background: var(--cream);
  border-top: 1px solid var(--cream-dk);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.site-footer__name {
  display: block;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.site-footer__tagline {
  display: block;
  font-size: 0.75rem;
  color: var(--text-lt);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-footer__meta p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-lt);
  max-width: 340px;
  text-align: right;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pillars__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .timeline-track { grid-template-columns: 1fr; gap: 3rem; }
  .timeline-track::before { display: none; }
}

@media (max-width: 768px) {
  .story-nav { padding: 1.25rem 6vw; }

  .story-hero__content { padding: 0 6vw 6rem; }
  .story-hero__scroll { display: none; }

  .definition-interlude {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 5rem 6vw;
  }

  .story-chapter { padding: 5rem 6vw; }
  .chapter-body { grid-template-columns: 1fr; gap: 2.5rem; }

  .pillars { padding: 5rem 6vw; }
  .pillars__grid { grid-template-columns: 1fr; gap: 3rem; }

  .story-timeline { padding: 5rem 6vw; }
  .timeline-event { padding: 0; }

  .story-closing { padding: 7rem 6vw; }

  .site-footer__inner { flex-direction: column; gap: 2rem; align-items: flex-start; }
  .site-footer__meta p { text-align: left; }
}