/* SEVSKAYA · Flash trash: a madrugada do Pantanal em fotos de flash estourado (preto, branco e o ouro do dente) */
.flash { position: relative; padding: 14vh 0 18vh; overflow: hidden; text-align: center;
  background: radial-gradient(ellipse 55% 45% at 50% 58%, rgba(233,227,214,.05), transparent 70%), #0b0b0c; }
.flash::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.flash__cab { position: relative; display: flex; flex-direction: column; align-items: center; }
.flash__cab .kicker { justify-content: center; }
.flash__cab .kicker::after { content: ""; width: 34px; height: 1px; background: var(--ouro); }
.flash__cab .titulo { margin: 0 0 1.4rem; }
.flash__cab .lead { margin: 0 auto; color: var(--pedra); }

/* a mesa: três cópias de laboratório jogadas, a do meio por cima */
.flash__mesa { position: relative; display: flex; justify-content: center; align-items: flex-start; margin: 9vh auto 0; padding: 0 var(--g); max-width: 1500px; }
.foto { position: relative; flex: 0 1 clamp(260px, 31vw, 520px); margin: 0 -1.2vw; transform: rotate(var(--r)); z-index: 1; transition: transform .6s var(--ease); }
.foto:nth-child(2) { z-index: 2; margin-top: 4vh; }
.foto__papel { position: relative; display: block; width: 100%; padding: 10px 10px 12px; border: 0; background: #F4F1EA; cursor: zoom-in; box-shadow: 0 2px 0 rgba(255,255,255,.05), 0 26px 40px rgba(0,0,0,.7); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.foto__img { position: relative; display: block; overflow: hidden; background: #000; }
.foto__img img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.28) brightness(1.04); }
/* flash direto: ponto quente no centro, borda que cai no preto, grão de filme */
.foto__img::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 46% 52% at 50% 42%, rgba(255,255,255,.16), transparent 62%),
              radial-gradient(ellipse 80% 80% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); mix-blend-mode: normal; }
/* data da câmera descartável, em ouro */
.foto__data { position: absolute; right: 22px; bottom: 24px; z-index: 2; font-family: 'Courier New', ui-monospace, monospace; font-weight: 700; font-size: clamp(.68rem, .95vw, .9rem); letter-spacing: .1em; color: #E8B45A;
  text-shadow: 0 0 4px rgba(232,180,90,.9), 0 0 12px rgba(198,149,63,.55); opacity: .92; filter: blur(.25px); pointer-events: none; }
.foto figcaption { margin-top: 3.2vh; padding: 0 6%; transform: rotate(calc(var(--r) * -1)); }
.foto figcaption b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(.95rem, 1.3vw, 1.2rem); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.foto figcaption span { color: var(--texto-2); font-size: .95rem; }
.foto:hover { transform: rotate(0deg) translateY(-12px); z-index: 5; }
.foto:hover .foto__papel { box-shadow: 0 2px 0 rgba(255,255,255,.05), 0 40px 60px rgba(0,0,0,.8); }
.foto:hover .foto__img img { animation: pisca .45s ease-out; }

/* revelação: as fotos estão no escuro até o flash disparar */
.flash.is-js .foto__img img { filter: grayscale(1) brightness(0); }
.flash.is-js .foto__data { opacity: 0; }
.flash.is-revelada .foto__img img { animation: revela 1.4s ease-out both; animation-delay: calc(var(--i) * .5s); }
.flash.is-revelada .foto__data { opacity: .92; transition: opacity .3s calc(var(--i) * .5s + .5s); }
@keyframes revela {
  0% { filter: grayscale(1) brightness(0); }
  5% { filter: grayscale(1) brightness(4) contrast(.6); }
  30% { filter: grayscale(1) brightness(1.6) contrast(1); }
  100% { filter: grayscale(1) contrast(1.28) brightness(1.04); }
}
@keyframes pisca {
  0% { filter: grayscale(1) contrast(1.28) brightness(1.04); }
  12% { filter: grayscale(1) brightness(2.6) contrast(.7); }
  100% { filter: grayscale(1) contrast(1.28) brightness(1.04); }
}

/* o clarão na tela inteira */
.flash-tela { position: fixed; inset: 0; z-index: 9000; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, #fffdf6, #f2ead8 60%, #d8ccb4); opacity: 0; }
.flash-tela.is-on { animation: clarao .62s ease-out; }
@keyframes clarao { 0% { opacity: 0; } 7% { opacity: .82; } 100% { opacity: 0; } }

@media (max-width: 860px) {
  .flash__mesa { flex-direction: column; align-items: center; gap: 7vh; }
  .foto { flex: none; width: min(88vw, 520px); margin: 0; }
  .foto:nth-child(2) { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flash.is-js .foto__img img, .flash.is-revelada .foto__img img { animation: none; filter: grayscale(1) contrast(1.28) brightness(1.04); }
  .flash.is-js .foto__data { opacity: .92; }
  .foto:hover .foto__img img { animation: none; }
}
