.signature-ink {
  position: relative;
  display: block;
  width: min(100%, 440px);
  aspect-ratio: 956 / 288;
  background: transparent;
  overflow: visible;
  isolation: isolate;
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
}

.signature-ink::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(92deg, #D4D4D4 0%, #7bffdf 18%, #ff5df7 38%, #ffed5c 56%, #69a7ff 76%, #D4D4D4 100%);
  background-size: 240% 100%;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 100ms ease;
  -webkit-mask: url("/assets/branding/davidlafond-signature-white-r01.png") center / contain no-repeat;
  mask: url("/assets/branding/davidlafond-signature-white-r01.png") center / contain no-repeat;
}

.signature-ink:hover::after {
  opacity: 0.92;
  animation: signature-psychedelia 900ms linear infinite;
}

@keyframes signature-psychedelia {
  to { background-position: 240% 50%; }
}

.signature-ink-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.siglab {
  display: grid;
  width: 100%;
  justify-items: center;
  row-gap: 14px;
}

.siglab-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 956 / 288;
  touch-action: none;
}

.siglab-stage.is-over {
  cursor: grab;
}

.siglab-stage.is-holding,
.siglab-stage.is-holding.is-over {
  cursor: grabbing;
}

.siglab-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: none;
}

.siglab-bar {
  display: flex;
  width: min(100%, 680px);
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.siglab-chips {
  position: relative;
  display: flex;
  width: min(100%, 420px);
  align-items: flex-end;
  justify-content: center;
}

.siglab-spheres {
  position: absolute;
  inset: 0 0 22px;
  display: block;
  width: 100%;
  height: calc(100% - 22px);
  pointer-events: none;
  filter: none;
}

.siglab-chip {
  position: relative;
  display: flex;
  min-width: 0;
  height: 84px;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.siglab-chip-label {
  color: currentColor;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.65;
  text-transform: lowercase;
  transition: opacity 160ms ease;
}

.siglab-chip:hover .siglab-chip-label,
.siglab-chip:focus-visible .siglab-chip-label,
.siglab-chip[aria-pressed="true"] .siglab-chip-label {
  opacity: 1;
}

.siglab-chip:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
  border-radius: 8px;
}

.signature-ink-fallback {
  opacity: 1;
  transition: opacity 180ms ease;
}

.signature-ink-fallback.is-hidden {
  opacity: 0;
}

.about__signature {
  display: grid;
  width: 100%;
  margin: 24px auto 88px;
  place-items: center;
}

.about__signature .siglab {
  width: min(calc(100% - 36px), 720px);
  row-gap: 46px;
}

@media (max-width: 767px) {
  .about__signature {
    margin: 8px auto 64px;
  }

  .about__signature .siglab {
    width: min(calc(100% - 16px), 720px);
  }

  .siglab-bar {
    justify-self: center;
    width: calc(100vw - 36px);
    margin-inline: auto;
  }

  .siglab-chips {
    width: 100%;
    max-width: none;
  }

  .siglab-chip {
    height: 72px;
  }
}
