/* ============================================================
   AM4LESS animated emblem
   Static port of the React Am4LessAnimatedLogo component.
   Locked config: variant "emblem", mode "hybrid-svg",
   lion centre "white circle", motion playing.

   Size is driven by --am4l-size so one stylesheet serves the
   header lockup and the footer crest. Motion distances scale
   with the emblem instead of using the component's fixed
   288-384px pixel values, which would read as a hop at 44px.
   ============================================================ */

.am4l{
  --am4l-size:44px;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:var(--am4l-size);
  height:var(--am4l-size);
  line-height:0;
}
.am4l--footer{--am4l-size:64px}

.am4l__glow{
  position:absolute;
  inset:0;
  border-radius:50%;
  filter:blur(calc(var(--am4l-size) * .16));
  background:radial-gradient(circle, rgba(16,42,214,.45) 0%, rgba(220,38,38,.18) 55%, transparent 75%);
  animation:am4lPulse 6s ease-in-out infinite;
}

.am4l__float{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  animation:am4lFloat 7s ease-in-out infinite;
}

.am4l__ring{
  width:100%;
  height:100%;
  overflow:visible;
}

/* clipped central lion from the badge artwork, upright and breathing */
.am4l__lion{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  clip-path:circle(27.2% at 50% 50%);
  animation:am4lBreathe 5s ease-in-out infinite;
}

/* diagonal glass light sweep across the disc */
.am4l__sheen{
  position:absolute;
  inset:0;
  border-radius:50%;
  overflow:hidden;
  clip-path:circle(48.5% at 50% 50%);
  pointer-events:none;
}
.am4l__sheen i{
  position:absolute;
  top:-50%;
  left:0;
  display:block;
  width:50%;
  height:200%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
  filter:blur(calc(var(--am4l-size) * .03));
  animation:am4lShimmer 6.5s ease-in-out infinite;
}

/* the site's .brand img / crest img sizing must not clamp the inner lion */
.brand .am4l__lion,
.footer__crest .am4l__lion{width:100%;height:100%;border-radius:0}

@keyframes am4lFloat{
  0%, 100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-2.6%) scale(1.025)}
}
@keyframes am4lOrbit{
  from{transform:rotate(0deg)}
  to{transform:rotate(360deg)}
}
@keyframes am4lPulse{
  0%, 100%{opacity:.35;transform:scale(.95)}
  50%{opacity:.7;transform:scale(1.08)}
}
@keyframes am4lShimmer{
  0%{transform:translateX(-150%) rotate(25deg)}
  40%, 100%{transform:translateX(150%) rotate(25deg)}
}
@keyframes am4lBreathe{
  0%, 100%{
    transform:scale(1);
    filter:contrast(1.06) drop-shadow(0 0 calc(var(--am4l-size) * .031) rgba(0,68,255,.35));
  }
  50%{
    transform:scale(1.045);
    filter:contrast(1.06) drop-shadow(0 0 calc(var(--am4l-size) * .0625) rgba(59,130,246,.65));
  }
}

@media (prefers-reduced-motion: reduce){
  .am4l__glow,
  .am4l__float,
  .am4l__lion,
  .am4l__sheen i,
  .am4l__ring [style*="animation"]{animation:none !important}
}
