/* Tela 02 · mosaico de imagens do grupo.
   A faixa de fotos fica inclinada atras das marcas e cada logo cai sobre a imagem do
   seu segmento. Logotipo, titulo e descricoes continuam horizontais, como na versao
   aprovada de 10/11. */

#scene-2 {
  background: #05202e;
  background-image: radial-gradient(120% 95% at 76% 4%, #0d4763 0%, #072b40 46%, #041a26 100%);
}

#scene-2 h1 {
  z-index: 3;
}

/* Faixa inclinada, recortada na horizontal para nao invadir a linha das descricoes. */
#scene-2 .history-mosaic {
  position: absolute;
  left: 0;
  top: 0;
  width: 1440px;
  height: 476px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

#scene-2 .history-band {
  position: absolute;
  left: 89px;
  top: 180px;
  width: 1262px;
  height: 400px;
  transform: rotate(-4deg);
  transform-origin: 50% 50%;
}

#scene-2 .history-mosaic figure {
  position: absolute;
  top: 0;
  width: 250px;
  height: 400px;
  margin: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #ffffff26;
}

#scene-2 .history-mosaic figure:nth-child(1) { left: 0; }
#scene-2 .history-mosaic figure:nth-child(2) { left: 253px; }
#scene-2 .history-mosaic figure:nth-child(3) { left: 506px; }
#scene-2 .history-mosaic figure:nth-child(4) { left: 759px; }
#scene-2 .history-mosaic figure:nth-child(5) { left: 1012px; }

#scene-2 .history-mosaic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .5s ease;
}

#scene-2 .history-mosaic figure:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 20, 30, .3) 0%, rgba(4, 20, 30, .08) 46%, rgba(3, 16, 25, .72) 100%);
}

/* As marcas do grupo entram na mesma proporcao optical: Incorpora Engenharia e
   IncorporaLog saem menores, as duas Bravo sobem. Escolha olhando a tela pronta. */
#scene-2 .history-rail button:nth-child(1) img { width: 145px; }
#scene-2 .history-rail button:nth-child(2) img { width: 112px; }
#scene-2 .history-rail button:nth-child(3) img { width: 190px; }
#scene-2 .history-rail button:nth-child(4) img { width: 170px; }
#scene-2 .history-rail button:nth-child(5) img { width: 135px; }

/* A foto do segmento acende quando a marca correspondente recebe o foco. */
#scene-2[data-active="0"] .history-mosaic figure:nth-child(1) img { filter: brightness(1.2) saturate(1.02); }
#scene-2[data-active="1"] .history-mosaic figure:nth-child(2) img { filter: brightness(1.2) saturate(1.02); }
#scene-2[data-active="2"] .history-mosaic figure:nth-child(3) img { filter: brightness(1.2) saturate(1.02); }
#scene-2[data-active="3"] .history-mosaic figure:nth-child(4) img { filter: brightness(1.2) saturate(1.02); }
#scene-2[data-active="4"] .history-mosaic figure:nth-child(5) img { filter: brightness(1.2) saturate(1.02); }

#scene-2 .history-wash {
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 22, 32, .93) 0%, rgba(4, 22, 32, .56) 20%, rgba(4, 22, 32, .12) 38%, rgba(4, 22, 32, .1) 58%, rgba(3, 17, 26, .82) 80%, rgba(3, 15, 24, .95) 100%);
}

@media (prefers-reduced-motion: reduce) {
  #scene-2 .history-mosaic img { transition: none; }
}
