/* Match the Ministries introduction while keeping the timeline on paper. */
.story-page--history .s-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(155deg, var(--ink) 18%, #102d46 55%, #0a2237);
  color: var(--cream-on-dark);
}
.story-page--history .s-hero > .section__inner { position: relative; z-index: 1; }
/* The same dotted texture and drifting blue/gold light used by Ministries. */
.history-hero-atmosphere { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.history-hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(176,209,232,.19) .75px, transparent 1px) 0 0 / 14px 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, rgba(0,0,0,.25) 40%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 10%, rgba(0,0,0,.25) 40%, #000 100%);
}
.history-hero-atmosphere i {
  position: absolute;
  display: block;
  width: clamp(30rem, 65vw, 65rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(76,160,217,.19), rgba(76,160,217,.065) 38%, transparent 70%);
  left: 34%;
  top: -35%;
  animation: history-hero-drift 22s ease-in-out -6s infinite alternate;
  animation-play-state: paused;
}
.history-hero-atmosphere i:nth-child(2) {
  width: clamp(25rem, 52vw, 54rem);
  background: radial-gradient(ellipse, rgba(198,160,98,.12), rgba(198,160,98,.035) 40%, transparent 70%);
  left: 48%;
  top: 8%;
  animation-duration: 28s;
  animation-delay: -15s;
  animation-direction: alternate-reverse;
}
.s-hero.is-atmosphere-active .history-hero-atmosphere i { animation-play-state: running; }
@keyframes history-hero-drift {
  0% { transform: translate3d(-16%, -8%, 0) scale(.94); }
  50% { transform: translate3d(7%, 15%, 0) scale(1.08); }
  100% { transform: translate3d(-8%, 35%, 0) scale(.98); }
}
.story-page--history .header.on-dark,
.story-page--history .header.on-dark.is-scrolled {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.story-page--history .s-hero h1 em,
.story-page--history .s-hero .s-icon { color: #93c9ed; }
.story-page--history .s-hero__lede,
.story-page--history .s-photo figcaption { color: #d2dee8; }
.story-page--history .s-hero__button { background: var(--paper); color: var(--ink); }
.story-page--history .s-hero__button:hover { background: #93c9ed; color: var(--ink); }
.story-page--history .s-index { border-color: var(--line-light); }
.story-page--history .s-index a:hover { color: #93c9ed; }
.story-page--history .s-photo { padding: 0; }
.story-page--history .s-photo::before {
  inset: -.75rem auto auto .75rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 1.4rem;
  pointer-events: none;
}
.story-page--history .s-photo__frame { aspect-ratio: 4 / 3; border-radius: 1.4rem; }
.story-page--history .s-photo img { object-position: center; }
.story-page--history .s-hero + .section { padding-top: clamp(3.5rem, 6.5vw, 6rem); }
@media (max-width: 700px) {
  .history-hero-atmosphere i { left: -30%; top: 5%; }
  .history-hero-atmosphere i:nth-child(2) { left: -5%; top: 42%; }
  .history-hero-atmosphere::after { opacity: .7; }
  .story-page--history .s-photo { width: 100%; }
  .story-page--history .s-photo::before { inset: -.5rem auto auto .5rem; border-radius: 1.1rem; }
  .story-page--history .s-photo__frame { border-radius: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .history-hero-atmosphere i { animation: none; }
}
