/*
  Lightkeeper motion. Version 1.1, 24 November 2026.
  Works on the inline SVG logo files in brand/logo, which tag the lamp as
  .lk-lamp and the rings as .lk-r1, .lk-r2, .lk-r3. Since v1.1 every mark is
  tagged, including the small (two-ring) and tiny (one-ring) marks.
  Add one class to an element that contains the SVG:
    .lk-pulse          rings light up outward from the lamp, on a loop
    .lk-flash          the light characteristic: two flashes every six seconds
    .lk-flash-hover    two flashes once, on hover or keyboard focus
    .lk-still          add to any of the above to hold it still (kit.js uses
                       this to keep two logos from moving at once)
  Follow (the lens turning toward the cursor) needs a few lines of script.
  See README.md in this folder, or brand/kit/kit.js.
*/

@keyframes lk-ring {
  0% { opacity: 0.18; }
  25% { opacity: 1; }
  70%, 100% { opacity: 0.18; }
}

@keyframes lk-characteristic {
  0%, 100% { opacity: 0.25; }
  3% { opacity: 1; }
  7% { opacity: 0.25; }
  11% { opacity: 1; }
  15% { opacity: 0.25; }
}

@keyframes lk-blink-twice {
  0%, 100% { opacity: 1; }
  12% { opacity: 0.15; }
  24% { opacity: 1; }
  40% { opacity: 0.15; }
  52% { opacity: 1; }
}

.lk-pulse .lk-r1 { animation: lk-ring 2.6s ease-out infinite; }
.lk-pulse .lk-r2 { animation: lk-ring 2.6s ease-out 0.25s infinite; }
.lk-pulse .lk-r3 { animation: lk-ring 2.6s ease-out 0.5s infinite; }

.lk-flash .lk-lamp { animation: lk-characteristic 6s linear infinite; }

.lk-flash-hover:hover .lk-lamp,
.lk-flash-hover:focus-visible .lk-lamp { animation: lk-blink-twice 1.4s linear 1; }

.lk-still .lk-lamp, .lk-still .lk-ring { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .lk-pulse *, .lk-flash *, .lk-flash-hover * { animation: none !important; }
}
