[data-reveal] {
  opacity: 1;
  transform: none;
}

/* Cross-page service links should land immediately, clear of the fixed header. */
html { scroll-behavior: auto; }
.capability { scroll-margin-top: 104px; }
body.admin-bar .capability { scroll-margin-top: 136px; }
.reveal-ready .capability[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
@media (max-width: 1024px) {
  .capability { scroll-margin-top: 140px; }
  body.admin-bar .capability { scroll-margin-top: 172px; }
}
@media (max-width: 782px) {
  body.admin-bar .capability { scroll-margin-top: 186px; }
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Add the client-selected photographs without changing the service grid spans. */
.service-card-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .6;
}
.service-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5,8,12,.96), rgba(5,8,12,.45) 70%, rgba(5,8,12,.3));
}
.service-card-photo > :not(img) {
  position: relative;
  z-index: 2;
}
.service-card-photo > b { position: absolute; }
.service-card-photo p { color: #e0e5eb; }
.service-card-photo .card-number { color: #d5dce4; }

/* The updated artwork has a transparent canvas and full stacked lockup.
   Frame only its mark here so the existing compact header/footer wordmark
   remains crisp, while eliminating the black square baked into the old PNG. */
.brand-mark {
  background: transparent;
}

.brand-mark img {
  width: 88px;
  left: -23px;
  top: 4px;
  clip-path: inset(0 0 32% 0);
}

/* Keep the three About-card descriptions on one visual baseline even when a
   title occupies only one line. Divi adds 10px of heading bottom padding. */
@media (min-width: 1025px) {
  .people-grid h3 {
    min-height: calc(2.1em + 10px);
  }
}

/* Keep core content immediately readable on phones. Mobile browsers can delay
   or skip IntersectionObserver callbacks during fast scrolls and full-page
   rendering, which previously left entire sections at zero opacity. */
@media (max-width: 760px) {
  /* All four standards stay visible, including Integrity, on narrow phones. */
  .hero-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: 76px;
    overflow: visible;
    padding: 8px 16px;
  }
  .hero-rail span {
    min-width: 0;
    padding: 4px;
    font-size: 8px;
    line-height: 1.5;
    letter-spacing: .16em;
    white-space: nowrap;
  }
  .hero-rail span:nth-child(even) { border-right: 0; }

  .brand-mark img {
    width: 79px;
    left: -21px;
    top: 3px;
  }

  body.praxis-site {
    overflow-x: hidden;
  }

  .split > *,
  .section-heading > *,
  .form-layout > *,
  .cta-section .shell > *,
  .footer-top > * {
    min-width: 0;
    max-width: 100%;
  }

  .praxis-site .split h2,
  .praxis-site .section-heading h2,
  .praxis-site .image-story h2,
  .praxis-site .national-content h2,
  .praxis-site .cta-section h2 {
    font-size: clamp(38px, 10vw, 46px);
    line-height: 0.98;
  }

  .praxis-site .page-hero h1,
  .praxis-site .hero-home h1 {
    font-size: clamp(46px, 12vw, 58px);
    line-height: 0.88;
  }

  .praxis-site .capability h2 {
    font-size: clamp(32px, 8.5vw, 38px);
    line-height: 1.02;
  }

  .praxis-site h1,
  .praxis-site h2,
  .praxis-site h3 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .praxis-site p,
  .praxis-site li {
    overflow-wrap: break-word;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero h1 em,
  .page-hero h1 em {
    color: rgba(255, 255, 255, 0.12);
    -webkit-text-stroke: 1.25px rgba(255, 255, 255, 0.96);
    text-shadow: 5px 7px 0 rgba(0, 118, 255, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
