.brand {
  position: relative;
}

.brand-motion {
  --brand-cycle: 2.3s;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.brand-q-glow {
  fill: #89cb29;
  animation: brand-q-glow var(--brand-cycle) ease-in-out infinite;
}

.brand-q-pulse {
  fill: none;
  stroke: #f5ffbf;
  stroke-width: 20;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34 122;
  stroke-dashoffset: 44;
  animation: brand-q-signal var(--brand-cycle) linear infinite;
}

.brand-ai-ring,
.brand-ai-pulse {
  opacity: 0;
  animation: brand-ai-reflection var(--brand-cycle) ease-in-out infinite;
}

.brand-ai-ring { fill: #a7df3d; }
.brand-ai-pulse { fill: #f5ffbf; }

@keyframes brand-q-glow {
  0%, 100% { fill: #89cb29; filter: drop-shadow(0 0 4px #a4e73950); }
  28% { fill: #a8e236; filter: drop-shadow(0 0 10px #a4e73990); }
  53%, 63% { fill: #dcff62; filter: drop-shadow(0 0 21px #b7ff61d9); }
}

@keyframes brand-q-signal {
  0% { stroke-dashoffset: 44; opacity: 0; }
  10% { opacity: 1; }
  53% { stroke-dashoffset: -67; opacity: 1; }
  66%, 100% { stroke-dashoffset: -110; opacity: 0; }
}

@keyframes brand-ai-reflection {
  0%, 48%, 100% { opacity: 0; }
  62%, 75% { opacity: 1; filter: drop-shadow(0 0 10px #beff67b5); }
}

.is-paused .brand-motion {
  visibility: hidden;
}

@media (min-width: 1101px) {
  .brand img { width: 204px; }
}

@media (max-width: 580px) {
  .header .brand img { width: 165px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-motion { display: none; }
}
