/* Animated colour accents. Load after refresh.css.
   Large areas move an isolated decorative layer; content never moves with it. */
:root {
  --gradient-ink: linear-gradient(115deg, #5830a7 0%, #355f64 45%, #71469c 72%, #5830a7 100%);
  --gradient-soft: linear-gradient(120deg, #eee6fa 0%, #e4f1e9 45%, #f1e9f4 75%, #eee6fa 100%);
}

.hero,
.page-hero,
.intro-section,
.section.bg-light,
footer {
  isolation: isolate;
}

.hero > .container,
.page-hero > .container,
.intro-section > .container,
.section.bg-light > .container,
.cta-section > .container,
footer > .container {
  position: relative;
  z-index: 1;
}

.hero {
  background: #f8f6fa;
}

.hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  inset: -14%;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 78% 35%, #d5c3ee 0%, transparent 46%),
    radial-gradient(ellipse at 22% 82%, #d4eadb 0%, transparent 43%),
    linear-gradient(130deg, #faf7fc 12%, #f0ecf5 50%, #e9f1e9 100%);
  opacity: .78;
  pointer-events: none;
  z-index: 0;
}

.page-hero::before {
  z-index: 1;
  opacity: .6;
}

.intro-section,
.section.bg-light:not(.cta-section) {
  position: relative;
  overflow: clip;
}

.intro-section::before,
.section.bg-light:not(.cta-section)::before {
  content: '';
  position: absolute;
  top: -10%;
  bottom: -10%;
  right: -12%;
  width: min(85%, 1100px);
  background:
    radial-gradient(ellipse at 72% 20%, #d9c8ec 0%, transparent 56%),
    radial-gradient(ellipse at 28% 80%, #c9e1d1 0%, transparent 58%);
  opacity: .4;
  z-index: 0;
  pointer-events: none;
}

.hero h1 span {
  color: #5c38b5;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero h1 span {
    background-image: var(--gradient-ink);
    background-size: 250% 100%;
    background-position: 0% 50%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.btn-primary,
.btn-primary:hover,
.cta-section .btn-primary,
.cta-section .btn-primary:hover {
  background-color: #5830a7;
  background-image: var(--gradient-ink);
  background-size: 250% 100%;
  background-position: 0% 50%;
  color: #fff;
}

.btn-primary:hover,
.cta-section .btn-primary:hover {
  box-shadow: 0 10px 24px #51319b2b;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 100% 0%, #dfd2f1 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, #dbebdf 0%, transparent 48%);
  opacity: .36;
  pointer-events: none;
  z-index: 0;
}

.service-card > :not(.card-number) {
  position: relative;
  z-index: 1;
}

.service-card .card-number {
  z-index: 1;
}

.service-card::after {
  background: linear-gradient(90deg, #956bc4, #78a48c, #ae81b4);
  background-size: 220% 100%;
}

.service-icon,
.service-card:nth-child(3n+2) .service-icon {
  background-color: #eee8f5;
  background-image: var(--gradient-soft);
  background-size: 220% 100%;
  color: #665087;
}

.partnership-visual,
.company-visual {
  background:
    radial-gradient(ellipse at 20% 15%, #dfcfee 0%, transparent 60%),
    radial-gradient(ellipse at 85% 85%, #d6e7d8 0%, transparent 62%),
    #f0edf4;
}

.partnership-visual::after,
.company-visual::after {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at 70% 25%, #a5d1bc, transparent 60%);
  opacity: .16;
  pointer-events: none;
  z-index: 0;
}

.partnership-visual > *,
.company-visual > * {
  z-index: 1;
}

.bridge-center,
.company-monogram {
  background-color: #654585;
  background-image: var(--gradient-ink);
  background-size: 250% 100%;
}

.platform-front {
  background: linear-gradient(135deg, #fff 0%, #e4d8f2 48%, #dcebe3 100%);
}

.cta-section,
.contact-info-box,
footer {
  background-color: #252131;
  background-image: linear-gradient(120deg, #30243e 0%, #253d3d 62%, #30253d 100%);
}

.cta-section::after,
footer::before {
  content: '';
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse at 10% 65%, #6d4c8e 0%, transparent 48%),
    radial-gradient(ellipse at 90% 20%, #467865 0%, transparent 48%);
  opacity: .24;
  pointer-events: none;
  z-index: 0;
}

footer {
  position: relative;
  overflow: hidden;
}

.cta-section {
  isolation: isolate;
}

.contact-info-box {
  isolation: isolate;
}

.contact-info-box::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at 100% 0%, #557c71, transparent 60%);
  opacity: .2;
  z-index: 0;
  pointer-events: none;
}

.contact-info-box > * {
  position: relative;
  z-index: 1;
}

@keyframes avosira-gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes avosira-gradient-drift {
  0%, 100% { transform: translate3d(-1.5%, 0, 0) scale(1.02); }
  50% { transform: translate3d(2.5%, -2%, 0) scale(1.06); }
}

@keyframes avosira-gradient-breathe {
  0%, 100% { opacity: .2; }
  50% { opacity: .5; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before,
  .page-hero::after,
  .intro-section::before,
  .section.bg-light:not(.cta-section)::before,
  .cta-section::after,
  footer::before {
    animation: avosira-gradient-drift 26s ease-in-out infinite;
  }

  .hero h1 span,
  .btn-primary,
  .service-icon,
  .bridge-center,
  .company-monogram {
    animation: avosira-gradient-flow 18s ease-in-out infinite;
  }

  .service-card::before,
  .partnership-visual::after,
  .company-visual::after,
  .contact-info-box::before {
    animation: avosira-gradient-breathe 20s ease-in-out infinite;
  }

  .service-card:nth-child(3n+2)::before,
  .service-card:nth-child(3n+2) .service-icon {
    animation-delay: -6s;
  }

  .service-card:nth-child(3n+3)::before,
  .service-card:nth-child(3n+3) .service-icon {
    animation-delay: -12s;
  }
}

/* Also explicit for hosts that concatenate or reorder stylesheets. */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .page-hero::after,
  .intro-section::before,
  .section.bg-light:not(.cta-section)::before,
  .cta-section::after,
  footer::before,
  .hero h1 span,
  .btn-primary,
  .service-icon,
  .bridge-center,
  .company-monogram,
  .service-card::before,
  .partnership-visual::after,
  .company-visual::after,
  .contact-info-box::before {
    animation: none;
  }
}
