/* footer wordmark glitch (from the main page) */
/* ===== footer wordmark glitch ===== */
.wm-glitch {
  position: relative; isolation: isolate; margin-top: 40px;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, rgba(0, 0, 0, 0.25) 100%);
  mask-image: linear-gradient(to bottom, #000 35%, rgba(0, 0, 0, 0.25) 100%);
}
.wm-glitch .wm-base { opacity: 0.18; filter: saturate(0.6); }
.wm-glitch.is-glitching .wm-base { opacity: 0.32; }
.wm-glitch img { display: block; width: 100%; height: auto; }
.wm-glitch .wm-c { position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.wm-glitch .wm-c {
  -webkit-mask: url('./logo-sensai.svg') center / 100% 100% no-repeat;
  mask: url('./logo-sensai.svg') center / 100% 100% no-repeat;
}
.wm-glitch .wm-c--a { background: #44CCFF; }
.wm-glitch .wm-c--b { background: #F794ED; }
.wm-glitch .wm-scan {
  position: absolute; left: 0; right: 0; height: 14%; top: -20%; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, rgba(68, 204, 255, 0.35), transparent);
  mix-blend-mode: screen;
}
.wm-glitch.is-glitching .wm-base { animation: wmJitter 0.5s steps(3, end) 1; }
.wm-glitch.is-glitching .wm-c--a { opacity: 0.7; animation: wmSliceA 0.5s steps(1, end) 1 forwards; }
.wm-glitch.is-glitching .wm-c--b { opacity: 0.7; animation: wmSliceB 0.5s steps(1, end) 1 forwards; }
.wm-glitch.is-glitching .wm-scan { opacity: 1; animation: wmScan 0.5s linear 1; }
@keyframes wmJitter { 0% { transform: none; } 33% { transform: translateX(-6px) skewX(-4deg); } 66% { transform: translateX(5px); } 100% { transform: none; } }
@keyframes wmSliceA {
  0% { clip-path: inset(8% 0 70% 0); transform: translateX(-18px); }
  20% { clip-path: inset(48% 0 36% 0); transform: translateX(14px); }
  40% { clip-path: inset(22% 0 60% 0); transform: translateX(-26px); }
  60% { clip-path: inset(70% 0 12% 0); transform: translateX(10px); }
  80% { clip-path: inset(35% 0 50% 0); transform: translateX(-8px); }
  100% { clip-path: inset(50% 0 50% 0); transform: none; }
}
@keyframes wmSliceB {
  0% { clip-path: inset(60% 0 22% 0); transform: translateX(16px); }
  20% { clip-path: inset(14% 0 72% 0); transform: translateX(-20px); }
  40% { clip-path: inset(40% 0 42% 0); transform: translateX(24px); }
  60% { clip-path: inset(4% 0 84% 0); transform: translateX(-12px); }
  80% { clip-path: inset(78% 0 6% 0); transform: translateX(18px); }
  100% { clip-path: inset(50% 0 50% 0); transform: none; }
}
@keyframes wmScan { from { top: -20%; } to { top: 110%; } }
@media (prefers-reduced-motion: reduce) { .wm-glitch.is-glitching * { animation: none !important; opacity: 0 !important; } .wm-glitch.is-glitching .wm-base { opacity: 1 !important; } }
