/* Branded color rhythm: stronger visual anchors without turning the page into a patchwork. */

#how-i-can-help,
#process,
#why,
#cases {
  position: relative;
  overflow: hidden;
}

#how-i-can-help > .public-shell,
#process > .public-shell,
#why > .public-shell,
#cases > .public-shell {
  position: relative;
  z-index: 1;
}

/* Services: cool wash behind the gold slider so the section reads as designed, not placed. */
#how-i-can-help.public-section {
  background:
    radial-gradient(circle at 88% 18%, rgba(41, 122, 160, 0.12) 0, rgba(41, 122, 160, 0) 24rem),
    linear-gradient(180deg, #f7f8fa 0%, #eef4f7 100%);
}

/* Process: make the timeline itself a brand-colored visual element. */
#process.public-section {
  background: #ffffff;
}

#process .public-process-timeline::before {
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(41, 122, 160, 0.9) 0%,
    rgba(41, 122, 160, 0.48) 72%,
    rgba(230, 184, 0, 0.92) 100%
  );
}

/* Why: subtle lens motif, derived from the ETLens name rather than generic decoration. */
#why.public-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(41, 122, 160, 0.035)),
    var(--public-feature-bg);
}

#why.public-section::before {
  content: "";
  position: absolute;
  width: clamp(19rem, 34vw, 34rem);
  aspect-ratio: 1;
  top: -12rem;
  right: -9rem;
  border: 1px solid rgba(41, 122, 160, 0.22);
  border-radius: 999px;
  box-shadow:
    0 0 0 3.5rem rgba(41, 122, 160, 0.035),
    0 0 0 7rem rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* Cases: one confident full-color section creates the missing visual anchor. */
#cases.public-section {
  background: var(--public-action);
  color: #ffffff;
}

#cases.public-section::before,
#cases.public-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

#cases.public-section::before {
  width: clamp(24rem, 43vw, 46rem);
  aspect-ratio: 1;
  right: -18rem;
  bottom: -27rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 4.5rem rgba(255, 255, 255, 0.035),
    0 0 0 9rem rgba(230, 184, 0, 0.045);
}

#cases.public-section::after {
  width: 5.5rem;
  height: 5.5rem;
  top: 3rem;
  right: 5vw;
  border: 1px solid rgba(230, 184, 0, 0.72);
}

#cases .public-section-label {
  border-color: rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.82);
}

#cases .public-section-title {
  color: #ffffff;
}

#cases .public-section-lead {
  color: rgba(255, 255, 255, 0.76);
}

#cases .public-section-intro::after {
  background: linear-gradient(
    90deg,
    var(--public-action-gold) 0 2.15rem,
    transparent 2.15rem 2.55rem,
    rgba(255, 255, 255, 0.78) 2.55rem 3.5rem
  );
}

#cases .public-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(5px);
}

#cases .public-card p {
  color: rgba(255, 255, 255, 0.84);
}

#cases .public-number {
  color: var(--public-action-gold);
}

#cases .public-card::before {
  background: var(--public-action-gold);
  box-shadow: -0.8rem 0 0 -1px rgba(255, 255, 255, 0.78);
}

@media (hover: hover) and (pointer: fine) {
  #cases .public-card.is-visible:hover,
  #cases .public-card:hover {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 1rem 2.4rem rgba(7, 30, 44, 0.16);
  }
}

@media (max-width: 900px) {
  #why.public-section::before {
    opacity: 0.65;
  }
}

@media (max-width: 640px) {
  #why.public-section::before {
    width: 22rem;
    top: -13rem;
    right: -14rem;
  }

  #cases.public-section::before {
    width: 28rem;
    right: -20rem;
    bottom: -20rem;
  }

  #cases.public-section::after {
    width: 3.75rem;
    height: 3.75rem;
    top: 2rem;
    right: -1rem;
  }
}
