/* Approved homepage photography and navigation. */
main[id], main section[id] {
  scroll-margin-top: 88px;
}

.hero-grid,
.photo-split,
.diagnostic-teaser-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.photo-split {
  display: grid;
}

.section-photo-lead {
  margin-bottom: 36px;
}

.section-photo-lead .service-link {
  margin-top: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions .button {
  text-align: center;
}

.hero-actions .hero-secondary {
  background: transparent;
  border: 1px solid #a8e9e4;
  color: #fff;
}

.approved-photo {
  margin: 0;
}

.approved-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.hero .hero-visual {
  display: block;
}

.hero .hero-image {
  max-height: none;
  border-radius: 17px;
}

.profile-grid {
  align-items: center;
}

.founder-photo {
  max-width: 320px;
  margin-top: 25px;
}

.services-cta,
.diagnostic-preview,
.contact .approved-photo {
  margin-top: 24px;
}

.diagnostic-preview span {
  padding: 10px 12px;
}

.diagnostic-preview span::before {
  display: inline;
  margin: 0 6px 0 0;
}

@media (min-width: 851px) {
  .links {
    gap: clamp(12px, 2vw, 26px);
  }
}

@media (max-width: 850px) {
  main[id], main section[id] {
    scroll-margin-top: 78px;
  }

  .hero-grid,
  .photo-split,
  .diagnostic-teaser-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-grid {
    gap: 28px;
  }
}

/* Four stages use the same order and color sequence as the approved roadmap. */
.approach-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.approach-flow li {
  --stage-color: #13334c;
  display: flex;
  flex-direction: column;
}

.approach-flow li:nth-child(2) { --stage-color: #24637f; }
.approach-flow li:nth-child(3) { --stage-color: #306a30; }
.approach-flow li:nth-child(4) { --stage-color: #07564e; }

.approach-flow h3 {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 100px;
  margin: 0;
  padding: 12px 22px;
  background: var(--stage-color);
  color: #fff;
  font-size: 1.28rem;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
}

.approach-flow h3 svg {
  width: 28px;
  height: 28px;
}

.approach-flow p {
  flex: 1;
  margin: 4px 12px 0 0;
  padding: 18px 20px;
  background: #eaf4f8;
  color: #365669;
  border-radius: 0 0 9px 9px;
}

@media (max-width: 850px) {
  .approach-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .approach-flow h3 {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 50% 100%, 0 calc(100% - 12px));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 62px;
    padding-bottom: 22px;
  }

  .approach-flow p {
    margin-right: 0;
  }
}
