/* Shared presentation for Services, Support, News & Stories, and Contact. */
.foundation-page {
  --foundation-crimson: #e5a0a4;
  --foundation-gold: #e0bd73;
}

.foundation-page main > .section {
  padding-block: clamp(32px, 4vw, 56px);
}

.foundation-page main > .page-hero {
  position: relative;
  padding-top: clamp(132px, 12vw, 174px);
  padding-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid rgba(224, 189, 115, .25);
  background:
    radial-gradient(ellipse at 88% 15%, rgba(101, 31, 32, .6), transparent 62%),
    linear-gradient(115deg, #151113, #0d0c0d 68%);
}

.foundation-page .page-hero::after {
  content: "";
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  width: clamp(64px, 18vw, 260px);
  height: 4px;
  background: linear-gradient(90deg, #ae4650, var(--foundation-gold));
}

.foundation-page .page-hero .detail-hero-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.foundation-page .page-hero .detail-hero-grid > div {
  max-width: 880px;
}

.foundation-page .page-hero h1 {
  max-width: 24ch;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  text-wrap: balance;
}

.foundation-page .page-hero .lead {
  max-width: 68ch;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.65;
  color: #d7cfd0;
}

.foundation-page .eyebrow {
  margin-bottom: 12px;
  color: var(--foundation-gold);
  font-size: .78rem;
  letter-spacing: .13em;
}

.foundation-page .hero-actions {
  margin-top: 22px;
  gap: 12px;
}

.foundation-page .section-header {
  margin-bottom: 24px;
}

.foundation-page .section-header h2,
.foundation-page .newsletter-card h2 {
  max-width: 30ch;
  font-size: clamp(1.65rem, 2.7vw, 2.4rem);
  line-height: 1.15;
  text-wrap: balance;
}

.foundation-page main .detail-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.foundation-page main .detail-panel {
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid rgba(224, 189, 115, .17);
  border-top: 3px solid #a94b55;
  border-radius: 12px;
  background: linear-gradient(145deg, #281b20, #181719 70%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .13);
}

.foundation-page main .detail-panel:nth-child(even) {
  border-top-color: var(--foundation-gold);
  background: linear-gradient(145deg, #282319, #181719 70%);
}

.foundation-page main .detail-panel h2,
.foundation-page main .detail-panel h3 {
  max-width: none;
  margin-bottom: 14px;
  color: var(--foundation-crimson);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
}

.foundation-page main .detail-panel:nth-child(even) h2,
.foundation-page main .detail-panel:nth-child(even) h3 {
  color: var(--foundation-gold);
}

.foundation-page main .detail-panel p,
.foundation-page main .detail-panel li {
  color: #d4cdce;
  font-size: .96rem;
  line-height: 1.6;
}

.foundation-page main .detail-panel p:last-child {
  margin-bottom: 0;
}

.foundation-page .detail-panel .phase-list {
  padding-left: 20px;
  gap: 8px;
}

.foundation-page .detail-panel .phase-list li {
  margin: 0;
}

.foundation-page .detail-panel li::marker {
  color: var(--foundation-gold);
}

.foundation-page main .media-detail-panel .media-frame {
  max-height: 180px;
  margin-bottom: 20px;
}

.foundation-page main .media-detail-panel img {
  height: 180px;
  object-fit: cover;
}

.foundation-page .newsletter-section {
  padding-block: 40px;
}

.foundation-page .newsletter-card {
  gap: 28px;
  padding: 28px;
}

@media (max-width: 900px) {
  .foundation-page main .detail-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .foundation-page main .detail-columns {
    grid-template-columns: 1fr;
  }

  .foundation-page main > .page-hero {
    padding-top: 112px;
  }

  .foundation-page .page-hero h1 {
    font-size: clamp(1.95rem, 8.4vw, 2.65rem);
  }

  .foundation-page .hero-actions .button {
    flex: 1 1 auto;
    min-height: 46px;
  }

  .foundation-page .newsletter-card {
    padding: 20px;
  }
}
