/* One black hole: the counter of the A in the HENAD wordmark.
   Layout lives in styles.css. The letters, the A's legs and the hole's outer
   ring stay still. Only the accretion around the hole's center slowly turns.
   Thinking speeds that turn. Reduce Motion: everything stays still. */

/* Soft halo behind the hole; no motion, so nothing warps. */
.henad-wordmark .henad-o-wrap::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 150, 40, 0.22) 0%,
    rgba(150, 90, 255, 0.1) 42%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
}

.henad-wordmark .henad-o-core {
  z-index: 2;
  transform-origin: 50% 50%;
  pointer-events: none;
  /* Closest-side is half the hole's height. The inner rim is ~43% of that,
     the bright mid-ring ~70%, and the outer wisps begin ~86%. Only the inner
     swirl is visible on this layer, so the ring's outline stays put. */
  -webkit-mask-image: radial-gradient(
    circle closest-side at 50% 50%,
    transparent 0 42%,
    #000 50%,
    #000 64%,
    transparent 76%
  );
  mask-image: radial-gradient(
    circle closest-side at 50% 50%,
    transparent 0 42%,
    #000 50%,
    #000 64%,
    transparent 76%
  );
}

@media (prefers-reduced-motion: no-preference) {
  .henad-wordmark .henad-o-core {
    animation: bh-core-spin 28s linear infinite;
  }
  body.henad-thinking .henad-wordmark .henad-o-core {
    animation-duration: 9s;
  }
}

@keyframes bh-core-spin {
  to { transform: rotate(360deg); }
}

/* The app greeting uses the same single wordmark, a bit smaller than the landing hero. */
.empty-greeting {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.greeting-wordmark {
  font-size: clamp(40px, 9vw, 72px);
}

@media (prefers-reduced-motion: reduce) {
  .henad-wordmark .henad-o-core {
    animation: none;
  }
}
