/* AfterAllys interactive wordmarks. Four concepts, one lockup size. */
@font-face {
  font-family: "Tilt Neon";
  src: url("../fonts/tilt-neon-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("../fonts/syne-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DotGothic16";
  src: url("../fonts/dotgothic16-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.aa-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  max-width: 100%;
  line-height: 1;
  vertical-align: middle;
}
.aa-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  color: #f5f5f0;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.aa-logo:focus-visible,
.aa-power:focus-visible {
  outline: 2px solid #d4ff00;
  outline-offset: 3px;
  border-radius: 6px;
}
.aa-logo__word { display: inline-flex; align-items: flex-end; height: 1em; }
.aa-ch { display: inline-block; }
.aa-logo__still {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.aa-logo__mark { display: inline-flex; align-items: center; height: 28px; }
.aa-logo__mark svg { height: 28px; width: auto; display: block; }
.brand--footer .aa-lockup,
.brand--footer .aa-logo,
.aa-lockup--phone .aa-logo,
.aa-lockup--phone {
  height: 32px;
}
.brand--footer .aa-logo__mark svg,
.aa-lockup--phone .aa-logo__mark svg { height: 22px; }

@media (max-width: 720px) {
  .aa-lockup, .aa-logo { height: 32px; }
  .aa-logo__mark svg { height: 22px; }
}

/* 1. Neon sign — Tilt Neon tubes */
.aa-logo--neon { font-family: "Tilt Neon", cursive; font-size: 28px; letter-spacing: -0.03em; }
.aa-logo--neon .aa-ch {
  color: #f7ffe4;
  text-shadow: 0 0 6px #d4ff00, 0 0 14px rgba(212, 255, 0, 0.65);
  animation: aa-flick 1.1s steps(2, end) both;
  animation-delay: calc(var(--i) * 80ms);
}
.aa-logo--neon .aa-cap { color: #fffce8; }
.aa-logo--neon .aa-wire {
  position: absolute;
  left: 36px;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 255, 0, 0.7), transparent);
  pointer-events: none;
}
.aa-power {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #d4ff00;
  box-shadow: 0 0 8px #d4ff00;
  cursor: pointer;
  flex: 0 0 auto;
}
.aa-lockup.is-after .aa-power { background: #ff1e8a; box-shadow: 0 0 8px #ff1e8a; }
.aa-lockup.is-after .aa-logo--neon .aa-ch {
  color: #ffe4f4;
  text-shadow: 0 0 6px #ff1e8a, 0 0 16px rgba(255, 30, 138, 0.75);
}
.aa-lockup:hover .aa-logo--neon .aa-word,
.aa-lockup:focus-within .aa-logo--neon .aa-word {
  animation: aa-buzz 0.14s linear infinite;
}
@keyframes aa-flick {
  0%, 18%, 36% { opacity: 0.2; filter: brightness(0.35); }
  9%, 28% { opacity: 1; }
  50%, 100% { opacity: 1; filter: none; }
}
@keyframes aa-buzz {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(0.6px); }
}

/* 2. Equalizer — Unbounded */
.aa-logo .aa-wordmark,
.aa-lockup > .aa-wordmark { height: 40px; width: auto; display: block; color: #f5f5f0; }
.brand--footer .aa-wordmark,
.aa-lockup--phone .aa-wordmark { height: 32px; }
@media (max-width: 720px) {
  .aa-logo .aa-wordmark { height: 32px; }
}
.aa-wordmark .aa-vu {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: aa-vu-idle 2.4s ease-in-out infinite;
}
.aa-wordmark .aa-vu.vu-a { fill: #d4ff00; animation-delay: 0.08s; }
.aa-wordmark .aa-vu.vu-l { fill: #d4ff00; }
.aa-wordmark .aa-vu.vu-l2 { fill: #ff1e8a; animation-delay: 0.18s; }
.aa-wordmark.is-live .aa-vu,
html.aa-audio-on .aa-wordmark .aa-vu {
  animation-name: aa-vu-beat;
  animation-duration: 0.484s;
}
.aa-wave { stroke-dasharray: 7 5; animation: aa-dash 1.2s linear infinite; }
html.aa-audio-on .aa-wave { animation-duration: 0.48s; }
@keyframes aa-vu-idle {
  0%, 100% { transform: scaleY(0.42); }
  50% { transform: scaleY(0.78); }
}
@keyframes aa-vu-beat {
  0%, 100% { transform: scaleY(0.22); }
  40% { transform: scaleY(1); }
  68% { transform: scaleY(0.48); }
}
@keyframes aa-dash { to { stroke-dashoffset: -24; } }
.plate-light { background: #fff; color: #08080c; }
.plate-light .aa-wordmark { color: #08080c; }
.plate-light .aa-wordmark .aa-vu.vu-a,
.plate-light .aa-wordmark .aa-vu.vu-l { fill: #08080c; }
.ink .aa-wordmark .aa-vu,
.ink .aa-wave { fill: currentColor; stroke: currentColor; }

/* 3. Laser — Syne */
.aa-logo--laser { font-family: "Syne", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.045em; }
.aa-logo--laser .aa-ch {
  background-image: linear-gradient(100deg, #ff1e8a 0%, #ffffff 22%, #d4ff00 48%, #5ce1e6 74%, #ff1e8a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: aa-sweep 3.2s linear infinite;
  animation-delay: calc(var(--i) * -0.12s);
}
.aa-logo--led .aa-logo__mark { display: none; }
.aa-logo--led .aa-band::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #3a3a3e;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}
.aa-logo--laser .aa-beam {
  position: absolute;
  top: -30%;
  bottom: -30%;
  width: 22px;
  left: var(--beam, 46%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  mix-blend-mode: screen;
  transform: skewX(-16deg);
  pointer-events: none;
}
@keyframes aa-sweep {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}

/* 4. LED wristband — DotGothic16 */
.aa-logo--led { font-family: "DotGothic16", monospace; font-size: 18px; letter-spacing: 0.04em; }
.aa-logo--led .aa-band {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  background: #070708;
  box-shadow: inset 0 0 0 1px #2a2a2e, 0 0 16px rgba(212, 255, 0, 0.18);
  position: relative;
  overflow: hidden;
}
.aa-logo--led .aa-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 2px, rgba(0, 0, 0, 0.28) 2px 3px);
  pointer-events: none;
  animation: aa-scan 1.6s linear infinite;
}
.aa-logo--led .aa-ch { color: #d4ff00; text-shadow: 0 0 6px rgba(212, 255, 0, 0.85); position: relative; z-index: 1; }
@keyframes aa-scan {
  from { transform: translateY(0); }
  to { transform: translateY(3px); }
}

html.aa-vu-live .aa-vu { animation: none; }
.brand--footer .aa-wordmark,
.aa-lockup--phone .aa-wordmark { height: 32px; }
.aa-lockup--stage .aa-logo,
.aa-lockup--stage .aa-wordmark { height: 112px; }
.aa-lockup--stage .aa-logo { height: 112px; }
.aa-lockup--stage .aa-logo__mark svg { height: 72px; }
.aa-lockup--stage .aa-logo--neon { font-size: 76px; }
.aa-lockup--stage .aa-logo--eq { font-size: 42px; }
.aa-lockup--stage .aa-logo--laser { font-size: 58px; }
.aa-lockup--stage .aa-logo--led { font-size: 42px; }
.aa-lockup--stage .aa-logo--led .aa-band { height: 72px; padding: 0 22px; }
.aa-lockup--stage .aa-power { width: 14px; height: 14px; }
.aa-lockup--phone .aa-logo--neon { font-size: 20px; }
.aa-lockup--phone .aa-logo--laser { font-size: 16px; }
.aa-lockup--phone .aa-logo--eq { font-size: 12px; }
.aa-lockup--phone .aa-logo--led { font-size: 14px; }
.aa-lockup--phone .aa-logo--led .aa-band { height: 26px; padding: 0 8px; }

@media (prefers-reduced-motion: reduce) {
  .aa-ch, .aa-word, .aa-band::after, .aa-logo--neon .aa-word, .aa-vu, .aa-wave { animation: none !important; }
  .aa-logo--neon .aa-ch { opacity: 1; filter: none; }
  .aa-vu { transform: scaleY(0.66); }
}

/* v2.8.0 static cobalt moon + white script logo */
.aa-lockup--static, .aa-logo--static { display: inline-flex; align-items: center; height: 60px; }
.aa-logo--static .aa-logo__img { height: 100%; width: auto; display: block; }
@media (max-width: 640px) { .aa-lockup--static, .aa-logo--static { height: 44px; } }
.brand--footer .aa-lockup--static, .brand--footer .aa-logo--static { height: 56px; }
