/* Loaded after style.css; these rules refine the ones there. Motion on paper is ink, never glowing points; the accent
   stays for links. Desktop layout and its paper motion are in desk.css, the phones' in mobile.css. */

/* Hero: the end words' dark backdrops come with the words (none at 0 s, so the black opening has no side bulges). */
.motion .end::before { opacity: 0; }
.motion.go.type .end::before { animation: sky-in 0.6s var(--enter) calc(2.5s - var(--since, 0s)) both; }
/* The headline forms from a light 2px blur, each glyph clear within 0.32 s and the whole line within 0.6 s. */
.motion .headline .ch {
  filter: blur(2px);
  transform: scale(1.03);
  transition: opacity 0.2s var(--enter), filter 0.32s var(--enter), transform 0.32s var(--enter);
  transition-delay: calc(var(--i) * 8ms);
}
/* The far sky (two still layers) shimmers slowly, out of step; it rests while the hero is off screen. */
.motion.go .sky-bg .sky-far { animation: sky-in 0.5s var(--enter) 0.25s both, glimmer 3.4s ease-in-out 1s infinite; }
.motion.go .sky-bg .sky-far2 { animation: sky-in 0.5s var(--enter) 0.25s both, glimmer 5.2s ease-in-out 1.7s infinite; }
.motion.go .sky-bg .sky-near { animation: sky-in 0.5s var(--enter) 0.45s both; }
@keyframes glimmer { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.sky.idle .sky-bg canvas { animation-play-state: paused; }

/* QR codes: both sets of corner marks lock in ink, the only corner marks on the page; the closing code keeps a 1px
   hairline frame. */
.lock { --c: var(--ink); }
.contact-qr .qr { box-shadow: inset 0 0 0 1px var(--rule-soft); }
