/* Line illustrations on a black page (2026-11-16, Max, «гелий-3»: «эффект анимации у картинок, характерный графически»).
   On a story whose page colour is pure black (look.color #000000), the pictures of the article are drawn like the
   illustrations themselves: each one is printed by a scanning line of light from top to bottom when it comes into view,
   then its blue glow breathes slowly and a faint scan passes over it now and then. public/figure-fx.js wraps the pictures
   in .fx-frame and starts them. */
.fx-frame { position: relative; display: block; overflow: hidden; isolation: isolate; }
.fx-frame > img { display: block; }
.fx-frame::before, .fx-frame::after { content: ''; position: absolute; pointer-events: none; z-index: 1; }
/* the glow: a blue light in the middle of the picture, added to it (screen), breathing */
.fx-frame::before {
  inset: 0; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(ellipse 46% 42% at 50% 46%, rgb(36 92 210 / .34), rgb(20 50 140 / .12) 55%, transparent 75%);
}
/* the scanning line: a hairline of light with a soft blue halo */
.fx-frame::after {
  left: 0; right: 0; top: 0; height: 2px; translate: 0 -4px; opacity: 0;
  background: #fff; box-shadow: 0 0 6px 1px rgb(150 200 255 / .9), 0 0 28px 6px rgb(60 120 255 / .45);
}
.fx-frame.is-waiting > img { clip-path: inset(0 0 100% 0); }
.fx-frame.is-printing > img { animation: fx-print 1.5s cubic-bezier(.45, .05, .35, 1) both; }
.fx-frame.is-printing::after { animation: fx-scan 1.5s cubic-bezier(.45, .05, .35, 1) both; }
.fx-frame.is-printed::before { animation: fx-breathe 6.5s ease-in-out infinite; }
.fx-frame.is-printed::after { animation: fx-pass 11s ease-in-out infinite; animation-delay: var(--fx-delay, 3s); }
@keyframes fx-print { from { clip-path: inset(0 0 100% 0); filter: brightness(1.6); } 85% { filter: brightness(1.15); } to { clip-path: inset(0 0 0 0); filter: none; } }
@keyframes fx-scan { 0% { top: 0; opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 2px); opacity: 0; } }
@keyframes fx-breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes fx-pass { 0%, 82% { top: 0; opacity: 0; } 84% { opacity: .5; } 100% { top: calc(100% - 2px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fx-frame.is-waiting > img { clip-path: none; }
  .fx-frame::before, .fx-frame::after, .fx-frame > img { animation: none !important; }
}
