.history-page nav {
  background: rgba(13, 79, 74, 0.94);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
.history-page nav.scrolled {
  background: #fff;
}
.history-page .nav-logo {
  color: inherit;
}
.history-page .mobile-nav-right {
  align-items: center;
  gap: 0.6rem;
}

.history-hero {
  position: relative;
  min-height: 100svh;
  padding: 9rem 5% 5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--teal);
}
.history-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      rgba(7, 35, 32, 0.94) 0%,
      rgba(13, 79, 74, 0.82) 52%,
      rgba(26, 26, 46, 0.42) 100%
    ),
    url("../images/base/historic/ndomba.jpeg") center/cover no-repeat;
  transform: scale(1.02);
}
.history-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 4rem;
  align-items: center;
}
.history-hero-copy {
  max-width: 760px;
}
.history-hero h1 {
  margin-top: 1.2rem;
  font-family: "Fraunces", serif;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.history-hero h1 em {
  color: var(--lime-bright);
}
.history-hero p {
  max-width: 630px;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.8;
}
.history-portrait {
  position: relative;
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}
.history-portrait img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  display: block;
}
.history-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 35, 32, 0.92), transparent 58%);
}
.history-portrait-caption {
  position: absolute;
  z-index: 1;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
}
.history-portrait-caption span {
  color: var(--lime-bright);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.history-portrait-caption strong {
  display: block;
  margin-top: 0.35rem;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  color: #fff;
}
.history-portrait-caption p {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

.legacy-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
}
.legacy-pill {
  background: #fff;
  padding: 1.3rem 1rem;
  text-align: center;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.history-story,
.history-people,
.history-impact {
  padding: 5.5rem 5%;
}
.history-story {
  background: var(--cream);
}
.history-section-heading {
  max-width: 780px;
  margin-bottom: 2.5rem;
}
.story-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
}
.story-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.story-tab {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 1rem;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}
.story-tab:hover,
.story-tab.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.story-panels {
  border: 1.5px solid var(--border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.story-panel {
  display: none;
  min-height: 420px;
  padding: 2.2rem;
}
.story-panel.active {
  display: block;
  animation: storyFade 0.28s ease;
}
.story-kicker {
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.story-panel h3 {
  margin-top: 0.7rem;
  margin-bottom: 1rem;
  font-family: "Fraunces", serif;
  color: var(--dark);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.08;
}
.story-panel p {
  color: var(--text);
  line-height: 1.85;
  max-width: 820px;
}
.story-panel p + p {
  margin-top: 1rem;
}
@keyframes storyFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.history-people {
  background: #fff;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.person-card {
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s;
}
.person-card:hover,
.person-card.expanded {
  transform: translateY(-5px);
  border-color: var(--teal);
  box-shadow: 0 20px 50px rgba(13, 79, 74, 0.1);
}
.person-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  filter: saturate(0.96);
}
.person-card-body {
  padding: 1.4rem;
}
.person-card-body span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.person-card-body h3 {
  margin-top: 0.35rem;
  font-family: "Fraunces", serif;
  color: var(--dark);
  font-size: 1.5rem;
}
.person-card-body p {
  max-height: 4.2rem;
  overflow: hidden;
  margin-top: 0.6rem;
  color: var(--text);
  line-height: 1.65;
  transition: max-height 0.3s;
}
.person-card.expanded .person-card-body p {
  max-height: 12rem;
}

.history-impact {
  background: var(--cream);
}
.history-impact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: 20px;
  background: #fff;
  border: 1.5px solid var(--border);
}
.history-impact-card > div {
  max-width: 760px;
}
.history-impact-card p {
  margin-top: 1rem;
  color: var(--text);
  line-height: 1.8;
}
.history-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.history-footer-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: url("../images/main.jpeg") center/cover;
}
.history-footer-links {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .history-hero-inner,
  .story-shell {
    grid-template-columns: 1fr;
  }
  .history-portrait {
    min-height: 420px;
  }
  .history-portrait img {
    min-height: 420px;
  }
  .people-grid {
    grid-template-columns: 1fr 1fr;
  }
  .history-impact-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .history-hero {
    padding: 6rem 5% 3.5rem;
  }
  .legacy-strip {
    grid-template-columns: 1fr;
  }
  .history-story,
  .history-people,
  .history-impact {
    padding: 3.5rem 5%;
  }
  .story-tabs {
    overflow-x: auto;
    flex-direction: row;
    padding-bottom: 0.35rem;
  }
  .story-tab {
    min-width: 190px;
  }
  .story-panel {
    min-height: auto;
    padding: 1.5rem;
  }
  .people-grid {
    grid-template-columns: 1fr;
  }
  .person-card img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .history-hero h1 {
    font-size: 3.2rem;
  }
  .history-portrait,
  .history-portrait img {
    min-height: 360px;
  }
  .history-impact-card {
    padding: 1.4rem;
  }
  .history-footer-links {
    flex-direction: column;
    gap: 0.7rem;
  }
}
