.expertise-page,
.expertise-page button,
.expertise-page input,
.expertise-page textarea,
.expertise-page select {
  font-family: "Open Sans", Arial, sans-serif;
}

.expertise-page {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 7% 25%, rgba(122, 171, 204, 0.16), transparent 32%),
    radial-gradient(ellipse at 93% 74%, rgba(18, 54, 117, 0.08), transparent 30%),
    var(--surface);
}

.expertise-deep-dive {
  position: relative;
  padding: clamp(3.25rem, 6vw, 6.5rem) 0 clamp(4rem, 8vw, 8rem);
}

.expertise-deep-grid {
  position: relative;
  z-index: 1;
  display: grid;
}

.expertise-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5.25rem);
  align-items: center;
  padding: clamp(2.1rem, 4.5vw, 4.25rem) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--teal) 28%, var(--line));
  scroll-margin-top: 7rem;
}

.expertise-feature:first-child {
  padding-top: 0;
}

.expertise-feature:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.expertise-feature:nth-child(even) .expertise-image-placeholder {
  order: 2;
}

.expertise-feature-copy {
  min-width: 0;
}

/* Paired reveals follow the alternating editorial layout. */
.expertise-feature .scroll-reveal.reveal-expertise-media {
  opacity: 0;
  translate: -42px 0;
  scale: 0.985;
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    translate 1150ms cubic-bezier(0.22, 1, 0.36, 1),
    scale 1150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.expertise-feature .scroll-reveal.reveal-expertise-copy {
  opacity: 0;
  translate: 34px 0;
  transition:
    opacity 850ms cubic-bezier(0.22, 1, 0.36, 1),
    translate 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 100ms;
}

.expertise-feature:nth-child(even) .scroll-reveal.reveal-expertise-media {
  translate: 42px 0;
}

.expertise-feature:nth-child(even) .scroll-reveal.reveal-expertise-copy {
  translate: -34px 0;
}

.expertise-feature .scroll-reveal.reveal-expertise-media.is-revealed,
.expertise-feature .scroll-reveal.reveal-expertise-copy.is-revealed,
.expertise-feature:nth-child(even) .scroll-reveal.reveal-expertise-media.is-revealed,
.expertise-feature:nth-child(even) .scroll-reveal.reveal-expertise-copy.is-revealed {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

.expertise-feature .expertise-feature-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.expertise-feature .expertise-highlights {
  margin-top: auto;
  padding-top: 1.6rem;
}

.expertise-image-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--teal) 38%, var(--line));
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(18, 54, 117, 0.2);
}

.expertise-image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 72%, rgba(18, 54, 117, 0.12));
  pointer-events: none;
}

.expertise-page .expertise-image-placeholder.has-image video,
.expertise-page .expertise-image-placeholder.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.expertise-image-placeholder.expertise-image-contain {
  background: #fff;
}

.expertise-image-placeholder.expertise-image-contain video {
  object-fit: contain;
}

.expertise-feature .eyebrow {
  margin: 0 0 0.65rem;
  color: var(--teal-dark);
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: none;
}

.expertise-feature h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.expertise-feature-copy > p:not(.eyebrow) {
  margin: 1.1rem 0 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.7;
}

.expertise-check-list {
  display: grid;
  gap: 0.72rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.expertise-check-list li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.55;
}

.expertise-check-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.48rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--teal-dark);
}

.expertise-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.expertise-highlights span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.65rem 0.85rem 0.85rem;
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 850;
}

.expertise-highlights span + span {
  border-left: 1px solid color-mix(in srgb, var(--teal) 34%, var(--line));
}

.expertise-highlights i {
  color: var(--teal-dark);
  font-size: 1.35rem;
}

.expertise-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 850;
}

.expertise-text-link:hover,
.expertise-text-link:focus-visible {
  color: var(--teal-dark);
}

@media (max-width: 1100px) {
  .expertise-feature,
  .expertise-feature:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .expertise-feature:nth-child(even) .expertise-image-placeholder {
    order: 0;
  }

  .expertise-feature .scroll-reveal.reveal-expertise-media,
  .expertise-feature .scroll-reveal.reveal-expertise-copy,
  .expertise-feature:nth-child(even) .scroll-reveal.reveal-expertise-media,
  .expertise-feature:nth-child(even) .scroll-reveal.reveal-expertise-copy {
    translate: 0 28px;
  }

}

@media (max-width: 620px) {
  .expertise-deep-dive {
    padding-top: 2.5rem;
  }

  .expertise-feature {
    padding-block: 2.5rem;
  }

  .expertise-page .expertise-image-placeholder {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .expertise-highlights {
    display: none;
  }
}
