/* === Our Story Page === */

/* --- Hero --- */
/* Flex keeps headline in the layout box so short viewports don’t clip text (overflow + absolute bottom). Image stays full-bleed behind. */
.story-hero-img {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-height: min(75vh, 700px);
  max-height: 700px;
  height: 75vh;
  overflow: hidden;
  padding: 24px 20px 48px;
  box-sizing: border-box;
}
.story-hero-img > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor lower in the photo so faces/notebooks sit higher in the hero (less empty band under nav) */
  object-position: center 32%;
  z-index: 0;
}
.story-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.story-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  text-align: center;
  color: #fff;
  flex-shrink: 0;
}
.story-hero-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
}
.story-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}

/* --- Intro --- */
.story-intro {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.story-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.story-intro-tag {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.story-intro-name {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.story-intro-detail {
  font-size: .88rem;
  color: var(--muted);
}
.story-intro-bio {
  padding-left: 32px;
  border-left: 3px solid var(--accent);
}
.story-intro-bio p {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.story-intro-bio p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.9vw, 1.2rem);
}

/* --- Timeline --- */
.story-timeline {
  padding: 100px 0;
  background: var(--bg2);
}

.timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 56px;
  position: relative;
  min-width: 0;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}
.timeline-marker::before {
  content: '';
  position: absolute;
  top: 8px;
  left: -0.5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dark);
  transform: translateX(-4px);
}
.timeline-year {
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  padding-top: 2px;
}

/* Section titles match body copy (same as first paragraph) */
.timeline-content h3 {
  font-size: .92rem;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: 0;
  line-height: 1.75;
  color: var(--muted);
}
.timeline-content p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.timeline-content p:last-child { margin-bottom: 0; }

.timeline-content {
  min-width: 0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

/* --- Pull Quote --- */
.story-pullquote {
  padding: 100px 0;
  background: var(--bg2);
  text-align: center;
}
.story-pullquote blockquote {
  max-width: 640px;
  margin: 0 auto;
}
.pq-mark {
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: .4;
  display: block;
  color: rgba(0,0,0,.04);
  font-family: Georgia, serif;
  margin-bottom: 24px;
  user-select: none;
}
.story-pullquote p {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
}
.story-pullquote cite {
  font-style: normal;
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .story-hero-img {
    height: auto;
    min-height: max(380px, 52vh);
    max-height: none;
    padding: 20px 16px 40px;
  }
  .story-hero-content { padding: 0; }
  .story-hero-title { font-size: 1.8rem; }
  .story-hero-label { font-size: .65rem; }

  .story-intro { padding: 48px 0; }
  .story-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .story-intro-name { font-size: 2rem; }
  .story-intro-bio { padding-left: 16px; }
  .story-intro-bio p { font-size: 1rem; }

  .story-timeline {
    padding: 56px 0;
    overflow-x: clip;
    max-width: 100%;
  }
  .story-timeline .container {
    max-width: 100%;
    box-sizing: border-box;
  }
  .timeline {
    padding-left: 0;
    margin-left: auto;
    margin-right: auto;
  }
  /* Line through center of year column (58px → center 29px) */
  .timeline::before {
    left: 29px;
  }
  .timeline-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px 14px;
    padding-bottom: 40px;
  }
  .timeline-marker {
    min-width: 0;
    justify-content: center;
  }
  .timeline-marker::before {
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
  }
  .timeline-year {
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
    padding-top: 18px;
    line-height: 1.25;
    box-sizing: border-box;
  }
  .timeline-content h3 { font-size: .85rem; }
  .timeline-content p { font-size: .85rem; }

  .story-pullquote { padding: 48px 0; }
  .story-pullquote blockquote {
    max-width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
  .pq-mark { font-size: 5rem; }
}

@media (max-width: 480px) {
  .story-hero-img {
    min-height: max(340px, 48vh);
    padding: 16px 14px 36px;
  }
  .story-hero-title { font-size: 1.45rem; line-height: 1.15; }
  .story-intro-name { font-size: 1.6rem; }

  .timeline::before {
    left: 24px;
  }
  .timeline-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px 12px;
  }
  .timeline-year {
    font-size: 0.75rem;
    padding-top: 16px;
  }
}
