:root {
  --rica-scene-base: linear-gradient(104deg, #f8f5ef 8%, #f7f4ed 34%, #deece8 68%, #cbe7e2);
  --rica-scene-teal-light: #b7ded9;
  --rica-scene-milk-light: #fbf7f0;
}

.rica-intro-scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "offer" "chat" "pricing" "installments" "team";
  position: relative;
  isolation: isolate;
  background:
    url("./rica-pricing-waves.webp") center bottom / max(100%, 700px) auto no-repeat,
    radial-gradient(ellipse at 92% 53%, var(--rica-scene-teal-light), transparent 58%),
    radial-gradient(ellipse at 20% 39%, var(--rica-scene-milk-light), transparent 57%),
    var(--rica-scene-base);
}

#allrecords .rica-intro-scene > :is(#rec690707959, #rica-home-chat, #rica-pricing),
#allrecords .rica-intro-scene .rica-home-hero-layout {
  background: transparent;
}

.rica-intro-scene > #rec690707959 { grid-area: offer; }
.rica-intro-scene > #rica-home-chat { grid-area: chat; }
.rica-intro-scene > #rica-pricing { grid-area: pricing; }
.rica-intro-scene > #rica-installments { grid-area: installments; }
.rica-intro-scene > .rica-team { grid-area: team; }

/* Both decorative layers belong to the shared canvas. Their transparent edges
   are part of the images and are independent of the section boundaries. */
.rica-intro-scene::before,
.rica-intro-scene::after {
  content: "";
  position: absolute;
  grid-area: offer;
  z-index: -1;
  pointer-events: none;
}
.rica-intro-scene::before {
  inset: 0;
  background:
    url("./rica-redesign-wave-top.webp") right top / 28.75% auto no-repeat,
    url("./rica-redesign-clinic-detail.webp") 54.71% top / 33.73% auto no-repeat,
    url("./rica-scene-clinic-air.webp") 62% top / max(81%, 780px) auto no-repeat;
}
.rica-intro-scene::after {
  inset: auto 0 0;
  height: clamp(110px, 13vw, 226px);
  transform: translateY(28%);
  background: url("./rica-scene-cross-wave.webp") right center / max(100%, 620px) 100% no-repeat;
}
@media (max-width: 767px) {
  .rica-intro-scene::before {
    background-size: 62% auto, 0, max(100%, 560px) auto;
  }
}
