/* About page-specific styles. Shared shell/navigation/sections live in /css/reach/. */

.about-hero > * {
  position: relative;
  z-index: 1;
}

.pastor-copy {
  flex: 1 1 0;
  min-width: 0;
}

.pastor-media {
  flex: 0 1 470px;
  width: 100%;
  max-width: 470px;
}

.pastor-frame {
  transform: rotate(2.1deg);
}

.pastor-image {
  display: block;
  width: 100%;
  height: auto;
}

.about-eyebrow {
  margin-bottom: 0.55rem;
}

.about-copy p:last-child,
.about-copy ul:last-child,
.about-copy ol:last-child,
.value-copy p:last-child,
.value-copy ul:last-child,
.value-copy ol:last-child {
  margin-bottom: 0;
}

.about-copy ul,
.about-copy ol,
.value-copy ul,
.value-copy ol {
  padding-left: 1.5rem;
}

.about-copy li,
.value-copy li {
  margin-bottom: 0.5rem;
}

.values-timeline {
  margin-top: 3.25rem;
}

.value-item {
  position: relative;
  padding-bottom: 3.3rem;
}

.value-rail {
  position: relative;
  flex: 0 0 1.4rem;
  align-self: stretch;
}

.value-rail::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  bottom: -3.3rem;
  left: 50%;
  width: 2px;
  background: var(--theme-border);
  transform: translateX(-50%);
}

.value-dot {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--theme-primary);
  box-shadow: 0 0 0 0.35rem var(--theme-background);
  transform: translateX(-50%);
  z-index: 2;
}

.value-item:last-child .value-rail::before {
  display: none;
}

.value-content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 800px;
}

.value-content h3 {
  color: var(--theme-text);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.value-copy {
  color: var(--theme-text-muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.custom-section .reach-section-inner {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pastor-frame.reveal-image {
  transform: translateY(18px) scale(0.97) rotate(2.1deg);
}

.pastor-frame.reveal-image.is-visible {
  transform: rotate(2.1deg);
}

@media (max-width: 991.98px) {
  .pastor-copy,
  .pastor-media {
    width: 100%;
    max-width: 100%;
  }

  .pastor-frame {
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 575.98px) {
  .about-title.display-3 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pastor-frame.reveal-image {
    transform: rotate(2.1deg);
  }
}
