/* Join the movement — entrance plays once, chips drift only while in view.
   Settled pixels match the original banner. Reduced motion keeps that still. */

.banner-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.banner-blob {
  position: absolute;
  z-index: 0;
  right: -6%;
  top: -22%;
  width: 68%;
  height: 92%;
  transform-origin: 74% 40%;
  background:
    radial-gradient(40% 46% at 80% 28%, rgba(255, 220, 150, 0.95) 0%, rgba(255, 186, 90, 0.35) 46%, rgba(255, 186, 90, 0) 72%),
    radial-gradient(58% 64% at 68% 46%, rgba(255, 140, 70, 0.92) 0%, rgba(255, 96, 120, 0.72) 48%, rgba(255, 96, 120, 0) 74%);
  filter: blur(12px);
}

.banner-photo-full {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("viivaa-banner.png") no-repeat right center / cover;
  transform-origin: 70% 58%;
}

.banner-grad {
  background-image: var(--g-head), linear-gradient(#16161f, #16161f);
  background-repeat: no-repeat;
  background-position: left center, left center;
  background-size: 100% 100%, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.banner-chips {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.banner-chip {
  position: absolute;
  display: inline-flex;
  max-width: min(230px, 46%);
  background: #fff;
  color: #22222e;
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 10px 26px rgba(70, 40, 90, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.85);
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.25;
  letter-spacing: -0.1px;
}

.banner-chip-drift { display: inline-block; }

.banner-chip.c1 { left: max(452px, 43%); bottom: 20px; }
.banner-chip.c2 { left: max(560px, 54%); bottom: 62px; }
.banner-chip.c3 { right: 18px; top: 68%; }
.banner-chip.c4 { right: 26px; top: 20px; }

@keyframes bannerBlob {
  from { opacity: 0; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bannerPhoto {
  0% {
    opacity: 0;
    transform: translate3d(42px, 8px, 0) scale(0.96);
    clip-path: inset(0 0 0 34%);
  }
  38% { opacity: 1; }
  100% {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes bannerRise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes bannerGrad {
  from { background-size: 0% 100%, 100% 100%; }
  to { background-size: 100% 100%, 100% 100%; }
}

@keyframes bannerPop {
  from { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.92); }
  to { opacity: 1; transform: none; }
}

@keyframes bannerDrift1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}
@keyframes bannerDrift2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(4px, -5px, 0); }
}
@keyframes bannerDrift3 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-3px, -6px, 0); }
}
@keyframes bannerDrift4 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(2px, -5px, 0); }
}

/* Armed, waiting for the section to enter. Final look stays in the stylesheet
   so a missing script never hides the banner. */
html.banner-motion:not(.banner-go):not(.banner-settled) .banner-blob {
  opacity: 0;
  transform: scale(0.82);
}
html.banner-motion:not(.banner-go):not(.banner-settled) .banner-photo-full {
  opacity: 0;
  transform: translate3d(42px, 8px, 0) scale(0.96);
  clip-path: inset(0 0 0 34%);
}
html.banner-motion:not(.banner-go):not(.banner-settled) .banner-body > *,
html.banner-motion:not(.banner-go):not(.banner-settled) .banner-chip {
  opacity: 0;
}
html.banner-motion:not(.banner-go):not(.banner-settled) .banner-grad {
  background-size: 0% 100%, 100% 100%;
}

html.banner-go:not(.banner-settled) .banner-blob {
  animation: bannerBlob 720ms cubic-bezier(.16, .84, .3, 1) both;
}
html.banner-go:not(.banner-settled) .banner-photo-full {
  animation: bannerPhoto 780ms cubic-bezier(.16, .84, .28, 1) 40ms both;
}
html.banner-go:not(.banner-settled) .banner-body > *:nth-child(1) {
  animation: bannerRise 640ms cubic-bezier(.22, .8, .28, 1) 160ms both;
}
html.banner-go:not(.banner-settled) .banner-body > *:nth-child(2) {
  animation: bannerRise 640ms cubic-bezier(.22, .8, .28, 1) 280ms both;
}
html.banner-go:not(.banner-settled) .banner-body > *:nth-child(3) {
  animation: bannerRise 640ms cubic-bezier(.22, .8, .28, 1) 400ms both;
}
html.banner-go:not(.banner-settled) .banner-body > *:nth-child(4) {
  animation: bannerRise 640ms cubic-bezier(.22, .8, .28, 1) 520ms both;
}
html.banner-go:not(.banner-settled) .banner-grad {
  animation: bannerGrad 900ms cubic-bezier(.22, .7, .24, 1) 700ms both;
}
html.banner-go:not(.banner-settled) .banner-chip.c1 { animation: bannerPop 460ms cubic-bezier(.2, .8, .2, 1) 980ms both; }
html.banner-go:not(.banner-settled) .banner-chip.c2 { animation: bannerPop 460ms cubic-bezier(.2, .8, .2, 1) 1140ms both; }
html.banner-go:not(.banner-settled) .banner-chip.c3 { animation: bannerPop 460ms cubic-bezier(.2, .8, .2, 1) 1300ms both; }
html.banner-go:not(.banner-settled) .banner-chip.c4 { animation: bannerPop 460ms cubic-bezier(.2, .8, .2, 1) 1460ms both; }

html.banner-go:not(.banner-live):not(.banner-settled) .banner-blob,
html.banner-go:not(.banner-live):not(.banner-settled) .banner-photo-full,
html.banner-go:not(.banner-live):not(.banner-settled) .banner-body > *,
html.banner-go:not(.banner-live):not(.banner-settled) .banner-grad,
html.banner-go:not(.banner-live):not(.banner-settled) .banner-chip {
  animation-play-state: paused;
}

html.banner-settled .banner-blob {
  animation: none;
  opacity: 1;
  transform: none;
}
html.banner-settled .banner-photo-full,
html.banner-settled .banner-body > *,
html.banner-settled .banner-chip {
  animation: none;
  opacity: 1;
  transform: none;
  clip-path: none;
}
html.banner-settled .banner-grad {
  animation: none;
  background-size: 100% 100%, 100% 100%;
}

html.banner-settled .c1 .banner-chip-drift { animation: bannerDrift1 6.8s ease-in-out infinite; animation-play-state: paused; }
html.banner-settled .c2 .banner-chip-drift { animation: bannerDrift2 7.6s ease-in-out infinite; animation-play-state: paused; }
html.banner-settled .c3 .banner-chip-drift { animation: bannerDrift3 6.4s ease-in-out infinite; animation-play-state: paused; }
html.banner-settled .c4 .banner-chip-drift { animation: bannerDrift4 8s ease-in-out infinite; animation-play-state: paused; }
html.banner-settled.banner-live .banner-chip-drift { animation-play-state: running; }

@media (max-width: 640px) {
  .banner-photo-full {
    background-position: center top;
    background-size: 130% auto;
  }
  .banner-blob {
    right: -22%;
    top: -30%;
    width: 118%;
    height: 220px;
  }
  .banner-chips {
    position: relative;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    height: auto;
    margin: 206px 0 0;
    padding: 0 12px;
  }
  .banner-chip {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    max-width: 100%;
    font-size: 11.5px;
    padding: 7px 10px;
  }
  html.banner-settled .c1 .banner-chip-drift,
  html.banner-settled .c2 .banner-chip-drift,
  html.banner-settled .c3 .banner-chip-drift,
  html.banner-settled .c4 .banner-chip-drift {
    animation-name: bannerDrift1;
    animation-duration: 7.4s;
  }
}

/* Between the side-by-side layout and a phone: keep chips in the lower-right
   of the photo so they stay off the copy and off faces. */
@media (max-width: 900px) and (min-width: 641px) {
  .banner-chip { max-width: 168px; }
  .banner-chip.c1,
  .banner-chip.c2,
  .banner-chip.c3,
  .banner-chip.c4 { left: auto; right: 14px; top: auto; }
  .banner-chip.c1 { bottom: 14px; }
  .banner-chip.c2 { bottom: 56px; }
  .banner-chip.c3 { bottom: 98px; }
  .banner-chip.c4 { bottom: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .banner-photo-full,
  .banner-blob,
  .banner-body > *,
  .banner-chip {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
  }
  .banner-grad {
    animation: none !important;
    background-size: 100% 100%, 100% 100% !important;
  }
  .banner-chip-drift { animation: none !important; transform: none !important; }
}
