/* Restore Attendance 0.5.1 — restrained premium animation for the brand mark. */
.brand-mark {
  isolation: isolate;
  animation: restore-brand-breathe 5.6s ease-in-out infinite;
}

.brand-mark::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -8px;
  padding: 1px;
  border: 1px solid rgba(226, 189, 102, 0.12);
  border-radius: 30px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 248deg,
    rgba(226, 189, 102, 0.08) 274deg,
    rgba(255, 226, 154, 0.86) 306deg,
    rgba(226, 189, 102, 0.16) 332deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 5px rgba(255, 214, 119, 0.22));
  opacity: 0.64;
  pointer-events: none;
  animation: restore-brand-orbit 9s linear infinite;
}

.brand-mark::after {
  z-index: 1;
}

.brand-mark span {
  position: relative;
  z-index: 2;
  display: inline-block;
  overflow: hidden;
  padding-inline: 2px;
}

.brand-mark span::after {
  content: "";
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: -58%;
  width: 11px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 246, 211, 0.92),
    transparent
  );
  filter: blur(0.3px);
  opacity: 0;
  pointer-events: none;
  transform: skewX(-18deg);
  animation: restore-brand-glint 7.2s ease-in-out infinite;
}

@keyframes restore-brand-breathe {
  0%,
  100% {
    box-shadow:
      0 0 0 6px rgba(226, 188, 99, 0.024),
      0 0 12px rgba(255, 216, 128, 0.035),
      inset 0 0 17px rgba(0, 0, 0, 0.62);
  }

  50% {
    box-shadow:
      0 0 0 7px rgba(226, 188, 99, 0.045),
      0 0 22px rgba(255, 216, 128, 0.15),
      inset 0 0 20px rgba(255, 216, 128, 0.025);
  }
}

@keyframes restore-brand-orbit {
  to {
    transform: rotate(1turn);
  }
}

@keyframes restore-brand-glint {
  0%,
  72%,
  100% {
    left: -58%;
    opacity: 0;
  }

  77% {
    opacity: 0.72;
  }

  86% {
    left: 112%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .brand-mark::before,
  .brand-mark span::after {
    animation: none !important;
  }

  .brand-mark {
    box-shadow:
      0 0 0 6px rgba(226, 188, 99, 0.035),
      0 0 16px rgba(255, 216, 128, 0.1),
      inset 0 0 17px rgba(0, 0, 0, 0.62);
  }

  .brand-mark::before {
    opacity: 0.34;
  }
}
