/* Quiet depth behind the existing white surfaces. */
body:has(> .ambient-spheres) { position: relative; isolation: isolate; }
.ambient-spheres {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: strict;
}
.ambient-spheres > span {
  position: absolute;
  inset: 0;
  display: block;
  --sphere-tile-height: 2600px;
  background-image:
    radial-gradient(circle var(--sphere-a-radius) at var(--sphere-a-x) var(--sphere-a-y), rgba(255,255,255,.5) 0%, rgba(194,216,185,.16) 32%, rgba(129,167,124,.085) 64%, rgba(149,183,139,.025) 75%, transparent 79%),
    radial-gradient(circle var(--sphere-b-radius) at var(--sphere-b-x) var(--sphere-b-y), rgba(255,255,255,.5) 0%, rgba(194,216,185,.16) 32%, rgba(129,167,124,.085) 64%, rgba(149,183,139,.025) 75%, transparent 79%);
  background-size: 100% var(--sphere-tile-height);
  background-repeat: repeat-y;
  opacity: .62;
}
.ambient-spheres > span:nth-child(1) {
  --sphere-a-x: 18%; --sphere-a-y: 280px; --sphere-a-radius: clamp(200px, 23vw, 320px);
  --sphere-b-x: 78%; --sphere-b-y: 1400px; --sphere-b-radius: clamp(220px, 21vw, 300px);
}
.ambient-spheres > span:nth-child(2) {
  --sphere-a-x: 84%; --sphere-a-y: 500px; --sphere-a-radius: clamp(220px, 22vw, 310px);
  --sphere-b-x: 24%; --sphere-b-y: 1840px; --sphere-b-radius: clamp(200px, 20vw, 280px);
  opacity: .45;
}
.ambient-spheres > span:nth-child(3) {
  --sphere-a-x: 28%; --sphere-a-y: 940px; --sphere-a-radius: clamp(210px, 21vw, 300px);
  --sphere-b-x: 75%; --sphere-b-y: 2200px; --sphere-b-radius: clamp(220px, 23vw, 320px);
  opacity: .4;
}
body:has(> .ambient-spheres) :is(.bank-hero, .about-section, .contact-band) { background: transparent; }

/* Individual translate leaves each card's existing hover transform intact. */
.has-reveal-effects { --card-reveal-distance: 88px; }
.has-reveal-effects .is-reveal-pending {
  opacity: 0;
  translate: 0 var(--card-reveal-distance);
}
.has-reveal-effects .is-reveal-entering {
  animation: viven-card-arrive 950ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes viven-card-arrive {
  from { opacity: 0; translate: 0 var(--card-reveal-distance); }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 640px) {
  .has-reveal-effects { --card-reveal-distance: 64px; }
  .ambient-spheres > span { --sphere-tile-height: 2200px; }
  .ambient-spheres > span:nth-child(1) {
    --sphere-a-x: 18%; --sphere-a-y: 200px; --sphere-a-radius: clamp(160px, 45vw, 205px);
    --sphere-b-x: 78%; --sphere-b-y: 1050px; --sphere-b-radius: clamp(170px, 48vw, 215px);
    opacity: .45;
  }
  .ambient-spheres > span:nth-child(2) {
    --sphere-a-x: 84%; --sphere-a-y: 380px; --sphere-a-radius: clamp(170px, 48vw, 215px);
    --sphere-b-x: 24%; --sphere-b-y: 1450px; --sphere-b-radius: clamp(160px, 44vw, 200px);
    opacity: .34;
  }
  .ambient-spheres > span:nth-child(3) {
    --sphere-a-x: 30%; --sphere-a-y: 720px; --sphere-a-radius: clamp(165px, 46vw, 210px);
    --sphere-b-x: 76%; --sphere-b-y: 1800px; --sphere-b-radius: clamp(170px, 48vw, 215px);
    opacity: .28;
  }
}
@media (prefers-reduced-motion: reduce) {
  .has-reveal-effects :is(.is-reveal-pending, .is-reveal-entering) { opacity: 1; translate: none; animation: none; }
}
@media print {
  .ambient-spheres { display: none; }
  .has-reveal-effects :is(.is-reveal-pending, .is-reveal-entering) { opacity: 1 !important; translate: none !important; animation: none !important; }
}
