/* Celebration wall (block "celebration-wall-birthdaybanner")
   A Feestvibe stage: the brand gradient as backdrop, two sweeping
   spotlights, haze and twinkles, a count-up numeral, and two photo rows
   sliding in opposite directions. */

.bb-wall {
  position: relative;
  overflow: hidden;
  padding: 80px 0 96px;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(255, 255, 255, .28), transparent 70%),
    radial-gradient(50% 40% at 15% 100%, rgba(241, 90, 85, .35), transparent 70%),
    radial-gradient(50% 40% at 85% 100%, rgba(255, 255, 255, .22), transparent 70%),
    linear-gradient(180deg, #4F82C3 0%, #F15A55 55%, #FCB830 100%);
}

/* Spotlights: two soft cones hanging from the top that slowly sweep. */
.bb-wall-beam {
  position: absolute;
  z-index: -1;
  top: -10%;
  width: 46%;
  height: 120%;
  pointer-events: none;
  filter: blur(18px);
  mix-blend-mode: soft-light;
  transform-origin: 50% 0;
}
.bb-wall-beam-1 {
  left: 6%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 80%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  animation: bb-wall-sweep-1 9s ease-in-out infinite alternate;
}
.bb-wall-beam-2 {
  right: 6%;
  background: linear-gradient(180deg, rgba(252, 184, 48, .6), rgba(252, 184, 48, 0) 80%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  animation: bb-wall-sweep-2 11s ease-in-out infinite alternate;
}
@keyframes bb-wall-sweep-1 { from { transform: rotate(-22deg); } to { transform: rotate(14deg); } }
@keyframes bb-wall-sweep-2 { from { transform: rotate(20deg); } to { transform: rotate(-16deg); } }

/* Twinkles: a sprinkle of tiny lights that pulse. */
.bb-wall-sparkles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 8% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 22% 64%, #fff, transparent),
    radial-gradient(2px 2px at 35% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 48% 40%, #fff, transparent),
    radial-gradient(2px 2px at 63% 22%, #FCB830, transparent),
    radial-gradient(1.5px 1.5px at 76% 58%, #fff, transparent),
    radial-gradient(2px 2px at 88% 14%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 93% 72%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 12% 86%, #FCB830, transparent),
    radial-gradient(2px 2px at 55% 90%, #fff, transparent);
  animation: bb-wall-twinkle 3.2s ease-in-out infinite alternate;
}
@keyframes bb-wall-twinkle { from { opacity: .35; } to { opacity: 1; } }

.bb-wall-head { position: relative; text-align: center; margin: 0 auto; }
/* The section itself sets the top space; drop .section-pad's extra 96px. */
.bb-wall .bb-wall-head { padding-top: 0; }
/* Without the big counter (left empty until there is a real number) the
   heading would sit on the section's top edge: give it the room back. */
.bb-wall .bb-wall-head:not(:has(.bb-wall-number)) { padding-top: 56px; }
.bb-wall-number {
  margin: 0 0 10px;
  font-family: var(--bb-font-heading);
  font-size: clamp(64px, 9vw, 128px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  filter: drop-shadow(0 0 28px rgba(0, 0, 0, .28));
}
.bb-wall .bb-wall-head h2 {
  margin-bottom: 12px;
  font-size: var(--bb-h2);
  color: #fff;
  letter-spacing: -.02em;
}
.bb-wall-sub {
  margin: 0 auto;
  max-width: 520px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, .92);
  line-height: 1.7;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .25);
}

/* Rows. Tiles use margin-right (not flex gap) so one set is exactly a third
   of the track and the -33.333% slide loops without a jump. */
.bb-wall-slider {
  position: relative;
  margin-top: 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.bb-wall-head + .bb-wall-slider { margin-top: 52px; }
.bb-wall-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 16px 0 22px;
  animation: bb-wall-slide var(--bb-wall-duration, 42s) linear infinite;
}
.bb-wall-slider.is-reverse .bb-wall-track { animation-direction: reverse; }
.bb-wall-slider:hover .bb-wall-track { animation-play-state: paused; }
@keyframes bb-wall-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}

.bb-wall-tile {
  --bb-tile-h: clamp(210px, 20vw, 290px);
  position: relative;
  flex-shrink: 0;
  margin: 0 22px 0 0;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 0 0 4px #fff; /* no dark shadow: the slider clips it into a grey band */
  transition: transform .35s var(--bb-ease, ease), box-shadow .35s var(--bb-ease, ease);
}
.bb-wall-slider.is-reverse .bb-wall-tile { --bb-tile-h: clamp(220px, 21vw, 300px); }
.bb-wall-tile:nth-child(odd)  { transform: rotate(-1.2deg); }
.bb-wall-tile:nth-child(even) { transform: rotate(1.2deg) translateY(8px); }
.bb-wall-tile:hover {
  transform: rotate(0) translateY(-6px) scale(1.03);
  box-shadow: 0 0 0 4px #fff, 0 0 36px rgba(255, 255, 255, .7);
}
.bb-wall-tile img {
  display: block;
  height: var(--bb-tile-h);
  width: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.bb-wall-tile.is-portrait img { aspect-ratio: 9 / 16; }
/* Light sheen that glides over a tile on hover. */
.bb-wall-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 45%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .8s ease;
  pointer-events: none;
}
.bb-wall-tile:hover::after { transform: translateX(100%); }
.bb-wall-caption {
  position: absolute;
  z-index: 1;
  left: 14px; bottom: 14px;
  padding: 6px 12px;
  border-radius: var(--bb-radius-pill, 999px);
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--bb-font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bb-wall-tile.is-portrait .bb-wall-caption { left: 8px; right: 8px; bottom: 10px; padding: 6px 8px; text-align: center; font-size: 9.5px; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 768px) {
  .bb-wall { padding: 56px 0 72px; }
  .bb-wall .bb-wall-head:not(:has(.bb-wall-number)) { padding-top: 32px; }
  .bb-wall-tile { margin-right: 16px; --bb-tile-h: 190px; }
  .bb-wall-slider.is-reverse .bb-wall-tile { --bb-tile-h: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .bb-wall-beam, .bb-wall-sparkles { animation: none; }
  .bb-wall-slider { overflow-x: auto; scrollbar-width: none; }
  .bb-wall-track { animation: none; padding-left: 24px; padding-right: 24px; }
  .bb-wall-tile[aria-hidden="true"] { display: none; }
}
