/* Swarm loader — effect chrome only. Site styles stay untouched.
   Hiding is opt-in: nothing here changes the page until JS adds .swarm-arm / .swarm-hold. */

html.swarm-arm {
  scroll-behavior: auto !important;
  overflow-anchor: none;
}

html.swarm-arm .swarm-hold {
  opacity: 0 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

html.swarm-arm .swarm-hold.swarm-shown {
  opacity: 1 !important;
  transition: opacity var(--swarm-in, 0.01s) linear !important;
}

@media (prefers-reduced-motion: reduce) {
  html.swarm-arm .swarm-hold {
    opacity: 1 !important;
    transition: none !important;
  }
  .swarm-root,
  .swarm-anchor {
    display: none !important;
  }
}

.swarm-root,
.swarm-root *,
.swarm-anchor,
.swarm-anchor * {
  box-sizing: border-box;
}

.swarm-root {
  position: fixed;
  inset: 0;
  z-index: 99990;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
}

.swarm-cursor,
.swarm-box {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.swarm-cursor {
  z-index: 6;
  opacity: 0;
  will-change: transform;
}

.swarm-root.is-on .swarm-cursor {
  opacity: 1;
}

.swarm-cursor svg {
  position: absolute;
  left: -1px;
  top: -1px;
  display: block;
  overflow: visible;
}

.swarm-tip {
  position: absolute;
  left: 13px;
  top: 16px;
  padding: 1px 4px 2px;
  border-radius: 3px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.swarm-root.is-mobile .swarm-tip {
  left: 11px;
  top: 14px;
  padding: 0 3px 1px;
  font-size: 8px;
}

.swarm-box {
  z-index: 2;
  visibility: hidden;
  will-change: transform;
}

.swarm-box.is-live {
  visibility: visible;
}

.swarm-fill,
.swarm-line,
.swarm-handle,
.swarm-scramble {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.swarm-fill {
  background: #2c2c2c;
  transform-origin: 0 0;
  will-change: transform, opacity;
}

.swarm-line {
  transform-origin: 0 0;
  will-change: transform, opacity;
}

.swarm-line.h { height: 1px; }
.swarm-line.v { width: 1px; }

.swarm-handle {
  width: 5px;
  height: 5px;
  will-change: transform, opacity;
}

.swarm-wire {
  opacity: 1;
}

.swarm-box.is-wire-out .swarm-wire {
  opacity: 0;
  transition: opacity 0.22s linear;
}

.swarm-scramble {
  overflow: hidden;
  margin: 0;
  opacity: 0;
  white-space: pre-wrap;
  word-break: break-word;
  will-change: opacity;
}

.swarm-anchor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  justify-content: center;
  padding: 0 10px max(14px, env(safe-area-inset-bottom));
  overflow: hidden;
  pointer-events: none;
}

.swarm-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  background: #161616;
  color: #f4f1ea;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.swarm-dots {
  display: flex;
  align-items: center;
  flex: none;
}

.swarm-dots i {
  display: block;
  width: 8px;
  height: 8px;
  margin-left: -3px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px #161616;
}

.swarm-dots i:first-child { margin-left: 0; }

.swarm-label { flex: none; }

.swarm-div {
  flex: none;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.28);
}

.swarm-speed {
  flex: none;
  min-width: 2.6em;
  padding-right: 6px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  opacity: 0.92;
}

.swarm-skip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.swarm-skip:hover,
.swarm-skip:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.swarm-skip:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.swarm-skip svg { display: block; }

@media (max-width: 719px) {
  .swarm-pill {
    gap: 6px;
    padding: 2px 4px 2px 10px;
    font-size: 12.5px;
  }
  .swarm-anchor { padding-inline: 8px; }
}

.swarm-root.is-leaving,
.swarm-anchor.is-leaving {
  opacity: 0;
  transition: opacity 0.36s linear;
}
