/*
 * THE FISSURE — the signature element. A thin ember seam echoing the crack
 * in the logo. Used as: loading state (.fissure--live), section divider
 * (static), and the seam above every verdict card.
 */

.fissure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2px;
  margin: 2rem 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ember-deep),
    var(--ember),
    var(--ember-deep),
    transparent
  );
  background-size: 200% 100%;
  box-shadow: 0 0 16px rgba(255, 106, 0, 0.3);
  animation: fissureFlow 3.5s linear infinite;
}

@keyframes fissureFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.fissure__node {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 6px 1px rgba(255, 106, 0, 0.55);
  opacity: 0.35;
}

.fissure--live .fissure__node {
  animation: fissure-ignite 1.6s ease-in-out infinite;
}

.fissure--live .fissure__node:nth-child(1) { animation-delay: 0ms; }
.fissure--live .fissure__node:nth-child(2) { animation-delay: 120ms; }
.fissure--live .fissure__node:nth-child(3) { animation-delay: 240ms; }
.fissure--live .fissure__node:nth-child(4) { animation-delay: 360ms; }
.fissure--live .fissure__node:nth-child(5) { animation-delay: 480ms; }

/* The verdict reveal seam — nodes blink continuously, echoing the
   constellation of light in the logo's crack. */
.fissure--enter .fissure__node {
  animation: nodeBlink 2.4s ease-in-out infinite;
}

.fissure--enter .fissure__node:nth-child(1) { animation-delay: 0ms; }
.fissure--enter .fissure__node:nth-child(2) { animation-delay: 300ms; }
.fissure--enter .fissure__node:nth-child(3) { animation-delay: 600ms; }
.fissure--enter .fissure__node:nth-child(4) { animation-delay: 900ms; }
.fissure--enter .fissure__node:nth-child(5) { animation-delay: 1200ms; }

.fissure__label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}

@keyframes fissure-ignite {
  0%, 100% {
    opacity: 0.35;
    box-shadow: 0 0 6px 1px rgba(255, 106, 0, 0.35);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 10px 3px rgba(255, 179, 92, 0.85);
  }
}

@keyframes nodeBlink {
  0%, 100% {
    opacity: 0.55;
    box-shadow: 0 0 6px 1px rgba(255, 106, 0, 0.45);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 15px 3px rgba(255, 106, 0, 0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fissure {
    animation: none;
    background-position: 50% 50%;
  }

  .fissure--live .fissure__node,
  .fissure--enter .fissure__node {
    animation: none;
    opacity: 1;
    box-shadow: 0 0 8px 2px rgba(255, 179, 92, 0.7);
  }
}
