/* ALTAIR living information visual system.
   Shared hero graphics; intentionally dependency-free and scoped to .altair-visual. */

:root {
  --altair-visual-blue: #213a8f;
  --altair-visual-blue-2: #374b9b;
  --altair-visual-cyan: #00b2bb;
  --altair-visual-green: #30ad67;
}

.hero__media:has(.altair-visual) {
  min-width: 0;
  align-self: stretch;
  display: grid;
  place-items: center;
}

.altair-visual {
  position: relative;
  isolation: isolate;
  width: min(100%, 46rem);
  min-height: 30rem;
  aspect-ratio: 720 / 520;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(1.5rem, 3vw, 2.75rem);
  background:
    radial-gradient(circle at 50% 50%, rgb(0 178 187 / 10%), transparent 16%),
    radial-gradient(circle at 52% 52%, rgb(33 58 143 / 8%), transparent 35%),
    radial-gradient(circle at 77% 28%, rgb(48 173 103 / 5%), transparent 22%),
    radial-gradient(circle at 22% 76%, rgb(55 75 155 / 5%), transparent 25%),
    linear-gradient(145deg, rgb(255 255 255 / 76%), rgb(247 250 253 / 50%));
}

.altair-visual::before,
.altair-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: -1;
}

.altair-visual::before {
  inset: 7% 6%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgb(33 58 143 / 3.2%) 0 1px, transparent 1px 3.9rem),
    conic-gradient(from 212deg at 50% 50%, transparent 0 18%, rgb(0 178 187 / 3.2%) 23%, transparent 31% 53%, rgb(33 58 143 / 2.8%) 60%, transparent 69% 100%);
  filter: blur(.15px);
  animation: altair-visual-radial-drift 26s ease-in-out infinite alternate;
}

.altair-visual::after {
  width: 38%;
  aspect-ratio: 1;
  inset-inline-start: 49%;
  inset-block-start: 48%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgb(255 255 255 / 55%), rgb(0 178 187 / 12%) 18%, rgb(33 58 143 / 5%) 45%, transparent 72%);
  filter: blur(2rem);
  opacity: .62;
  animation: altair-visual-breathe 10s ease-in-out infinite;
}

.altair-visual__canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

/* Make generated solution pages use the same media composition as the homepage. */
.hero.hero--solution .hero__inner--media:has(.altair-visual),
.hero.hero--home .hero__inner--media:has(.altair-visual) {
  align-items: center;
}

/* Delivery and references previously used text-only heroes. */
.hero__inner--media.altair-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, .92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@keyframes altair-visual-radial-drift {
  0% { transform: translate3d(-1.2%, -.8%, 0) rotate(-1.4deg) scale(.985); opacity: .72; }
  100% { transform: translate3d(1.6%, 1.1%, 0) rotate(2deg) scale(1.025); opacity: 1; }
}

@keyframes altair-visual-breathe {
  0%, 100% { transform: scale(.84); opacity: .46; }
  50% { transform: scale(1.08); opacity: .72; }
}

@media (max-width: 64rem) {
  .altair-visual {
    width: min(100%, 44rem);
    min-height: 26rem;
  }

  .hero__inner--media.altair-hero-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .altair-visual {
    width: calc(100% + 1rem);
    margin-inline: -.5rem;
    min-height: 20rem;
    border-radius: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .altair-visual::before,
  .altair-visual::after {
    animation: none;
  }
}

/* Secondary brand texture outside heroes. Kept intentionally low-contrast. */
.section--surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section--surface::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 20%, rgb(0 178 187 / 3.5%), transparent 17rem),
    radial-gradient(circle at 17% 82%, rgb(33 58 143 / 2.8%), transparent 20rem),
    repeating-radial-gradient(circle at 84% 20%, rgb(33 58 143 / 1.9%) 0 1px, transparent 1px 4rem);
  opacity: .72;
}

.capability-grid .card--solution,
.grid .card--solution {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.capability-grid .card--solution::before,
.grid .card--solution::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: -2.25rem;
  inset-block-start: -2.25rem;
  width: 8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgb(0 178 187 / 10%) 0 2px, transparent 2.5px),
    repeating-radial-gradient(circle, rgb(33 58 143 / 3.5%) 0 1px, transparent 1px 1.4rem);
  opacity: .28;
  transform: scale(.82);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}

.capability-grid .card--solution:hover::before,
.capability-grid .card--solution:focus-visible::before,
.grid .card--solution:hover::before,
.grid .card--solution:focus-visible::before {
  opacity: .72;
  transform: scale(1.08);
}

.cta-banner--inverse {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.cta-banner--inverse::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(34rem, 62vw);
  aspect-ratio: 1;
  inset-inline-end: -12%;
  inset-block-start: 50%;
  translate: 0 -50%;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgb(0 178 187 / 16%), transparent 16%),
    repeating-radial-gradient(circle, rgb(255 255 255 / 5%) 0 1px, transparent 1px 3.5rem),
    radial-gradient(circle, rgb(48 173 103 / 8%), transparent 62%);
  opacity: .65;
  animation: altair-cta-breathe 12s ease-in-out infinite;
}

@keyframes altair-cta-breathe {
  0%, 100% { transform: scale(.9); opacity: .48; }
  50% { transform: scale(1.05); opacity: .72; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-banner--inverse::after {
    animation: none;
  }
}
