/* A+B signature moments */

/* cursor gravity field ring */
#cur.grav::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.35);
  opacity: 0.5;
  animation: gravPulse 1.8s ease-out infinite;
}
@keyframes gravPulse {
  0% { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* work ghost terminal */
.row {
  position: relative;
}
.row-ghost {
  position: absolute;
  right: 3.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: rgba(167, 139, 250, 0.0);
  background: rgba(5, 3, 12, 0.75);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  min-width: 180px;
  max-width: 240px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s;
  z-index: 4;
  backdrop-filter: blur(10px);
  white-space: pre-line;
}
.row:hover .row-ghost,
.row:focus-within .row-ghost {
  opacity: 1;
  color: rgba(196, 181, 253, 0.9);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.25);
}
.row-ghost .g-ok { color: #34d399; }
.row-ghost .g-warn { color: #fb7185; }
@media (max-width: 900px) {
  .row-ghost { display: none; }
}

/* manifesto light cones */
.statement {
  overflow: hidden;
}
.statement-pin {
  position: relative;
}
.stmt-cone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 40% 50% at 50% 50%,
    rgba(167, 139, 250, 0.12),
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}
.statement.is-lit .stmt-cone {
  opacity: 1;
}
.statement.is-crack::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 70%, rgba(251, 113, 133, 0.25), transparent 45%);
  animation: crackFlash 0.45s ease-out forwards;
  pointer-events: none;
  z-index: 1;
}
@keyframes crackFlash {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}
.statement-text {
  position: relative;
  z-index: 2;
}

/* method tether */
.ms-tether {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}
.ms-tether line {
  stroke: url(#tetherGrad);
  stroke-width: 1.2;
  stroke-dasharray: 4 8;
  opacity: 0.7;
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.8));
  animation: msDash 8s linear infinite;
}

/* proof float */
.proof-grid {
  gap: 1.15rem;
}
.proof-card {
  border-radius: 22px;
  border-color: rgba(167, 139, 250, 0.15);
  background:
    radial-gradient(circle at 20% 0%, rgba(167, 139, 250, 0.14), transparent 50%),
    rgba(8, 8, 14, 0.4);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.proof-card:hover {
  transform: translateY(-10px) scale(1.015);
}

/* contact void */
.finale {
  position: relative;
}
.finale::before {
  content: "";
  position: absolute;
  inset: 10% 20%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.55), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.finale > div {
  position: relative;
  z-index: 1;
}
.finale.is-void h2 {
  text-shadow: 0 0 60px rgba(167, 139, 250, 0.25);
}

/* chapter title chroma on fast scroll */
.chromate {
  text-shadow:
    -1px 0 rgba(251, 113, 133, 0.45),
    1px 0 rgba(167, 139, 250, 0.45);
}

/* magnetic spring feel */
.btn {
  will-change: transform;
}
