/* GRAPHIC EVOLUTION — targeted About / Contact / Gallery refinements
   Revision 5. This stylesheet is linked only by about.html, contact.html and
   gallery.html. The approved homepage and all shared content remain untouched. */

/* ABOUT — unify both four-card groups on the same immediate left-to-right sweep.
   Explicitly keep the gradient painted above the card background (z-index: 0),
   with content above it; this removes the delayed/white flash on the lower cards. */
.about-page .grid4 .card,
.about-page .about-process-steps .about-process-step {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  border: 1px solid #e8dced !important;
  border-radius: 20px !important;
  background: #fff !important;
  color: #302a36 !important;
  box-shadow: 0 8px 24px rgba(49,26,65,.06) !important;
  transition: transform .38s cubic-bezier(.2,.75,.25,1),
              box-shadow .38s ease, border-color .35s ease,
              color .3s ease !important;
  transition-delay: 0s !important;
}
.about-page .grid4 .card::before,
.about-page .about-process-steps .about-process-step::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  opacity: 1 !important;
  border-radius: inherit !important;
  background: linear-gradient(105deg,#351347 0%,#5e2082 48%,#8a35bd 100%) !important;
  transform: translateX(-105%) !important;
  transition: transform .55s cubic-bezier(.2,.7,.2,1) !important;
  transition-delay: 0s !important;
  pointer-events: none !important;
}
.about-page .grid4 .card > *,
.about-page .about-process-steps .about-process-step > * {
  position: relative !important;
  z-index: 1 !important;
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .about-page .grid4 .card:hover,
  .about-page .grid4 .card:focus-visible,
  .about-page .about-process-steps .about-process-step:hover,
  .about-page .about-process-steps .about-process-step:focus-within {
    transform: translateY(-7px) scale(1.025) !important;
    border-color: #7026a0 !important;
    box-shadow: 0 18px 42px rgba(53,19,71,.20),
                0 0 0 1px rgba(123,36,184,.07) !important;
    color: #fff !important;
  }
  .about-page .grid4 .card:hover::before,
  .about-page .grid4 .card:focus-visible::before,
  .about-page .about-process-steps .about-process-step:hover::before,
  .about-page .about-process-steps .about-process-step:focus-within::before {
    transform: translateX(0) !important;
  }
  .about-page .grid4 .card:hover h3,
  .about-page .grid4 .card:focus-visible h3,
  .about-page .about-process-steps .about-process-step:hover h3,
  .about-page .about-process-steps .about-process-step:focus-within h3 {
    color: #fff !important;
  }
  .about-page .grid4 .card:hover p,
  .about-page .grid4 .card:focus-visible p,
  .about-page .about-process-steps .about-process-step:hover p,
  .about-page .about-process-steps .about-process-step:focus-within p {
    color: #eee4f5 !important;
  }
  .about-page .grid4 .card:hover .num,
  .about-page .grid4 .card:focus-visible .num,
  .about-page .about-process-steps .about-process-step:hover .step-number,
  .about-page .about-process-steps .about-process-step:focus-within .step-number {
    color: #5b1c7b !important;
    background: #f0dcfb !important;
    border-radius: 8px;
    padding: 3px 7px;
  }
}
@media (hover:none), (pointer:coarse) {
  .about-page .grid4 .card,
  .about-page .about-process-steps .about-process-step,
  .about-page .grid4 .card:hover,
  .about-page .about-process-steps .about-process-step:hover,
  .about-page .grid4 .card:focus-visible,
  .about-page .about-process-steps .about-process-step:focus-within {
    transform: none !important;
    color: #302a36 !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(49,26,65,.06) !important;
  }
  .about-page .grid4 .card::before,
  .about-page .about-process-steps .about-process-step::before {
    transform: translateX(-105%) !important;
  }
}

/* CONTACT — background-only decoration. The content/cards retain their existing
   dimensions, styling, stacking and form behaviour. Waves fade toward the bottom. */
body.contact-page .contact-section {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background-color: #fcfaff !important;
  background-image:
    radial-gradient(ellipse 78% 46% at 5% 0%, rgba(188,151,222,.34), transparent 74%),
    radial-gradient(ellipse 72% 48% at 98% 23%, rgba(150,103,198,.23), transparent 73%),
    radial-gradient(ellipse 64% 42% at 46% 56%, rgba(216,195,237,.27), transparent 76%),
    linear-gradient(128deg,#faf6ff 0%,#fff 47%,#f8f2fd 100%) !important;
}
body.contact-page .contact-section::before,
body.contact-page .contact-section::after {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  display: block !important;
  pointer-events: none !important;
  border-radius: 48% 52% 61% 39% / 54% 42% 58% 46% !important;
}
body.contact-page .contact-section::before {
  width: clamp(430px,58vw,850px) !important;
  height: clamp(220px,27vw,390px) !important;
  top: -105px !important;
  left: -150px !important;
  opacity: .82 !important;
  background:
    radial-gradient(ellipse at 42% 48%,rgba(184,142,219,.27),transparent 68%),
    linear-gradient(168deg,transparent 44%,rgba(151,105,194,.18) 45%,rgba(151,105,194,.18) 46%,transparent 47.5%),
    linear-gradient(176deg,transparent 65%,rgba(190,157,220,.22) 66%,rgba(190,157,220,.22) 67%,transparent 68.5%) !important;
}
body.contact-page .contact-section::after {
  width: clamp(390px,52vw,760px) !important;
  height: clamp(230px,28vw,410px) !important;
  top: 12% !important;
  right: -180px !important;
  opacity: .7 !important;
  background:
    radial-gradient(ellipse at 52% 45%,rgba(157,112,201,.20),transparent 70%),
    linear-gradient(12deg,transparent 48%,rgba(184,150,215,.17) 49%,rgba(184,150,215,.17) 50%,transparent 51.5%),
    linear-gradient(8deg,transparent 68%,rgba(209,188,232,.24) 69%,rgba(209,188,232,.24) 70%,transparent 71.5%) !important;
}
body.contact-page .contact-section > .container {
  position: relative !important;
  z-index: 1 !important;
}
@media (max-width: 700px) {
  body.contact-page .contact-section {
    background-image:
      radial-gradient(ellipse 100% 34% at 0% 0%,rgba(188,151,222,.28),transparent 75%),
      radial-gradient(ellipse 100% 35% at 100% 28%,rgba(157,112,201,.17),transparent 76%),
      linear-gradient(145deg,#faf6ff 0%,#fff 58%,#fbf8fe 100%) !important;
  }
  body.contact-page .contact-section::before {
    width: 440px !important; height: 220px !important;
    top: -70px !important; left: -210px !important; opacity: .68 !important;
  }
  body.contact-page .contact-section::after {
    width: 380px !important; height: 230px !important;
    top: 22% !important; right: -230px !important; opacity: .56 !important;
  }
}

/* GALLERY — continuous, low-contrast lavender wash across the complete image
   collection. Organic shapes are decorative layers behind the gallery content. */
body.gallery-page .gallery-section {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background-color: #fcfaff !important;
  background-image:
    radial-gradient(ellipse 66% 25% at 0% 3%,rgba(194,164,222,.22),transparent 76%),
    radial-gradient(ellipse 62% 26% at 100% 28%,rgba(176,142,211,.17),transparent 76%),
    radial-gradient(ellipse 70% 30% at 8% 62%,rgba(215,197,235,.20),transparent 78%),
    radial-gradient(ellipse 64% 26% at 100% 94%,rgba(190,160,220,.18),transparent 78%),
    linear-gradient(132deg,#fbf8ff 0%,#fff 48%,#faf6fe 100%) !important;
}
body.gallery-page .gallery-section::before,
body.gallery-page .gallery-section::after {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  display: block !important;
  pointer-events: none !important;
  border-radius: 58% 42% 49% 51% / 47% 56% 44% 53% !important;
}
body.gallery-page .gallery-section::before {
  width: clamp(390px,54vw,780px) !important;
  height: clamp(260px,31vw,460px) !important;
  top: 5% !important;
  right: -210px !important;
  opacity: .58 !important;
  background:
    radial-gradient(ellipse at 48% 48%,rgba(187,153,218,.19),transparent 72%),
    linear-gradient(164deg,transparent 47%,rgba(164,126,199,.13) 48%,rgba(164,126,199,.13) 49%,transparent 50.5%),
    linear-gradient(172deg,transparent 67%,rgba(197,174,222,.16) 68%,rgba(197,174,222,.16) 69%,transparent 70.5%) !important;
}
body.gallery-page .gallery-section::after {
  width: clamp(350px,48vw,690px) !important;
  height: clamp(260px,30vw,430px) !important;
  bottom: 2% !important;
  left: -210px !important;
  opacity: .52 !important;
  background:
    radial-gradient(ellipse at 52% 50%,rgba(194,166,222,.18),transparent 72%),
    linear-gradient(12deg,transparent 47%,rgba(174,143,207,.12) 48%,rgba(174,143,207,.12) 49%,transparent 50.5%),
    linear-gradient(8deg,transparent 68%,rgba(204,184,227,.15) 69%,rgba(204,184,227,.15) 70%,transparent 71.5%) !important;
}
body.gallery-page .gallery-section > .container {
  position: relative !important;
  z-index: 1 !important;
}
@media (max-width: 700px) {
  body.gallery-page .gallery-section {
    background-image:
      radial-gradient(ellipse 100% 20% at 0% 4%,rgba(194,164,222,.19),transparent 78%),
      radial-gradient(ellipse 100% 22% at 100% 36%,rgba(176,142,211,.15),transparent 78%),
      radial-gradient(ellipse 100% 24% at 0% 76%,rgba(215,197,235,.17),transparent 80%),
      linear-gradient(140deg,#fbf8ff 0%,#fff 52%,#faf6fe 100%) !important;
  }
  body.gallery-page .gallery-section::before {
    width: 390px !important; height: 245px !important;
    top: 2% !important; right: -245px !important; opacity: .45 !important;
  }
  body.gallery-page .gallery-section::after {
    width: 350px !important; height: 230px !important;
    bottom: 1% !important; left: -235px !important; opacity: .42 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-page .grid4 .card,
  .about-page .about-process-steps .about-process-step,
  .about-page .grid4 .card::before,
  .about-page .about-process-steps .about-process-step::before {
    transition: none !important;
  }
}
