/* Réveillon: real Carneiros photography, glass and a finite SVG entrance. */
#slide-market-validation {
  isolation: isolate;
  overflow-x: hidden;
  background: var(--plum-deep);
}
#slide-market-validation::before,
#slide-market-validation::after { display: none; }
#slide-market-validation .news-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
#slide-market-validation .news-scene > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}
#slide-market-validation .news-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(31,21,41,.84), transparent 40%),
    linear-gradient(90deg, rgba(38,24,49,.94) 0%, rgba(43,27,55,.86) 33%, rgba(43,27,55,.53) 58%, rgba(27,29,36,.28) 100%);
}
#slide-market-validation .news-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(15,10,30,.48);
  opacity: 0;
}
#slide-market-validation.active:not(.is-arriving) .news-scene::before {
  animation: rendape-firework-light 2800ms ease both;
}
@keyframes rendape-firework-light {
  0%, 100% { opacity: 0; }
  12%, 65% { opacity: 1; }
}
#slide-market-validation .slide-inner { z-index: 2; }
#slide-market-validation .validation-facts > div {
  background: linear-gradient(135deg, rgba(255,253,251,.19), rgba(216,184,237,.09));
  border: 1px solid rgba(255,253,251,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 12px 32px rgba(15,9,23,.14);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
}
#slide-market-validation .validation-facts b {
  color: var(--paper);
  white-space: nowrap;
}
body:has(#slide-market-validation.active) .shell .top {
  background: rgba(53,35,66,.56) !important;
  -webkit-backdrop-filter: blur(28px) saturate(135%) !important;
  backdrop-filter: blur(28px) saturate(135%) !important;
  border-bottom: 1px solid rgba(255,253,251,.22) !important;
  box-shadow: 0 8px 28px rgba(18,12,25,.1);
}

/* SVG comets and independently moving sparks, driven by the slide lifecycle. */
#slide-market-validation .news-fireworks {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
#slide-market-validation .news-fireworks > svg { width: 100%; height: 100%; }
#slide-market-validation.is-arriving .news-feature { opacity: 0; }
#slide-market-validation.active:not(.is-arriving) .news-feature {
  animation: rendape-newspaper-enter 560ms cubic-bezier(.16,1,.3,1) 2600ms both;
}
@keyframes rendape-newspaper-enter {
  from { opacity: 0; transform: translate3d(64px,24px,0) rotate(3deg) scale(.94); }
  to { opacity: 1; transform: translate3d(0,0,0) rotate(0) scale(1); }
}
@media (max-width: 600px) {
  /* Keep the scrollable content above the permanent navigation pill. */
  body:has(#slide-market-validation.active) .stage { background: var(--plum-deep); }
  #slide-market-validation {
    bottom: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: 0;
  }
  #slide-market-validation .slide-inner {
    min-height: calc(100svh - 60px - env(safe-area-inset-bottom));
    padding-bottom: 24px !important;
  }
  #slide-market-validation .news-scene { height: 100svh; }
  #slide-market-validation .news-scene > img { object-position: 62% center; }
  #slide-market-validation .news-scene::after {
    background: linear-gradient(180deg, rgba(38,24,49,.75), rgba(43,27,55,.72) 48%, var(--plum-deep) 100%);
  }
  #slide-market-validation .news-fireworks {
    top: 285px;
    bottom: auto;
    height: min(280px, 72vw);
  }
  #slide-market-validation .news-newspaper { background-image: url('press-forbes-life-reveillon.png'); }
  body:has(#slide-market-validation.active) .shell .top,
  body:has(#slide-market-validation.active) .shell.format-portrait .top {
    background: rgba(53,35,66,.82) !important;
    -webkit-backdrop-filter: blur(28px) saturate(135%) !important;
    backdrop-filter: blur(28px) saturate(135%) !important;
  }
  @keyframes rendape-newspaper-enter {
    from { opacity: 0; transform: translate3d(0,22px,0) scale(.97); }
    to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  #slide-market-validation.active:not(.is-arriving) .news-scene::before { animation: none; }
  #slide-market-validation .news-fireworks { display: none; }
  #slide-market-validation.is-arriving .news-feature,
  #slide-market-validation.active:not(.is-arriving) .news-feature {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
