/* Synapse — loading de entrada (% central) */

html.synapse-entry-pending body > .transition-wrapper {
  pointer-events: none !important;
}

html.synapse-entry-pending body > .transition-wrapper > main > *:not(#hero) {
  visibility: hidden !important;
}

html.synapse-entry-pending #hero .hero-layer--content {
  visibility: hidden !important;
}

html.synapse-entry-pending {
  overflow: hidden !important;
  height: 100%;
  background: #000;
}

html.synapse-entry-pending body.body {
  background-color: #000 !important;
}

html:not(.synapse-entry-pending) body > .transition-wrapper {
  animation: synapseWrapperReveal 0.68s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes synapseWrapperReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#synapse-site-entry.synapse-site-entry {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  transition:
    opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.68s;
  contain: layout style paint;
}

#synapse-site-entry.synapse-site-entry--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.synapse-site-entry__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.synapse-site-entry__percent {
  margin: 0;
  font-family: "Syne", "Exo Local", "Exo", system-ui, sans-serif;
  font-size: clamp(4rem, 18vw, 9rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  text-align: center;
}

.synapse-site-entry__label {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5vh, 48px);
  transform: translateX(-50%);
  margin: 0;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.synapse-entry-pending) body > .transition-wrapper {
    animation: none;
    opacity: 1;
    transform: none;
  }

  #synapse-site-entry.synapse-site-entry {
    transition:
      opacity 0.22s ease,
      visibility 0s linear 0.22s;
  }
}
