/* The Mighty Victorian's signature button, shared by every case-study site (3 Dec 2026).
   A port of themightyvictorian.com's call to action (1. Brand & Website/site/src/components/cta/cta.css .btn-gold):
   glitter set in resin, a few glints that twinkle under the pointer, clay light and shade, a squircle, a lift on
   hover, a give when pressed, the hammer cursor, and confetti out from behind it on click (signature-button.js).
   Only the colours change per brand: each site loads one theme (themes/<brand>.css) that sets the --sig-* values,
   and its own glitter.svg and glints.svg sit beside this file. Use: class="sig-btn" (add sig-btn-lg for a page's
   closing call). Words stay white, with their own shadow so the glitter never takes them. */
.sig-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 24px;
  corner-shape: squircle;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  /* white words, unless a brand's button is too light for them (a vivid green): then its theme sets dark ones */
  color: var(--sig-ink, #fff);
  text-shadow: 0 1px 2px var(--sig-word-shadow);
  background:
    url('glitter.svg') center / cover no-repeat,
    radial-gradient(120% 150% at 50% 30%, var(--sig-1) 0%, var(--sig-2) 55%, var(--sig-3) 100%);
  box-shadow:
    inset 3px 4px 8px var(--sig-light),
    inset -4px -6px 12px var(--sig-shade),
    0 12px 24px -10px var(--sig-drop);
  cursor: pointer;
  transition:
    box-shadow 0.25s,
    transform 0.2s,
    filter 0.2s;
}
.sig-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  corner-shape: squircle;
  background: url('glints.svg') center / cover no-repeat;
  opacity: 0.3;
  pointer-events: none;
}
.sig-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12) saturate(1.05);
  box-shadow:
    inset 3px 4px 10px var(--sig-light),
    inset -4px -6px 12px var(--sig-shade),
    0 16px 28px -10px var(--sig-drop);
}
.sig-btn:hover::before {
  animation: sig-twinkle 0.9s ease-in-out infinite alternate;
}
@keyframes sig-twinkle {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}
.sig-btn:active {
  transform: translateY(1px);
  filter: brightness(0.95);
  box-shadow:
    inset 2px 3px 6px var(--sig-shade),
    0 6px 14px -8px var(--sig-drop);
}
.sig-btn:focus-visible {
  /* the brand's colour by default, so the ring shows on dark and light pages alike; a site can set --sig-focus */
  outline: 3px solid var(--sig-focus, var(--brand, #fff));
  outline-offset: 3px;
}
.sig-btn.sig-btn-lg {
  min-height: 60px;
  padding: 0 36px;
  font-size: 17px;
}
@media (max-width: 760px) {
  .sig-btn.sig-btn-lg {
    min-height: 56px;
    padding: 0 30px;
    font-size: 16px;
  }
}
/* the button as a spinner while its confetti flies (signature-button.js), then back */
.sig-btn.is-cheering {
  padding: 0;
  overflow: hidden;
  color: transparent;
  text-shadow: none;
  cursor: progress;
}
.sig-btn.is-cheering > * {
  opacity: 0;
}
.sig-btn.is-cheering::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgb(255 255 255 / 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sig-spin 0.7s linear infinite;
}
@keyframes sig-spin {
  to {
    rotate: 1turn;
  }
}
/* the confetti's layer: over the page, the button's shape cut out of it */
.sig-burst {
  position: fixed;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none;
}
.sig-burst i {
  position: absolute;
  border-radius: 1px;
}
/* the hammer: with a mouse only. The head's middle is the point that clicks */
@media (hover: hover) and (pointer: fine) {
  .sig-btn {
    cursor:
      url('mjolnir.svg') 11 11,
      pointer;
  }
  .sig-btn:active,
  .sig-btn.is-cheering {
    cursor:
      url('mjolnir-strike.svg') 11 11,
      progress;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sig-btn:hover,
  .sig-btn:active {
    transform: none;
  }
  .sig-btn:hover::before {
    animation: none;
    opacity: 0.8;
  }
}
