/*
 * superpower.css
 * ─────────────────────────────────────────────────────────────
 * "My Superpower" section — dark navy, two-column layout.
 *
 * Left  (.sp-left)  — copy, traits slide-in list
 * Right (.sp-right) — animated SVG Venn diagram
 *
 * Venn animation is triggered by superpower.js via
 * IntersectionObserver. Classes .lit and .visible are
 * added by JavaScript when the section enters the viewport.
 * ─────────────────────────────────────────────────────────────
 */

#superpower {
  background: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 4rem;
  position: relative;
}

#superpower .s-label { color: rgba(255, 255, 255, 0.55); letter-spacing: 0.22em; }
#superpower .s-title { color: var(--white); }

/* Body copy paragraphs */
.sp-desc {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
  line-height: 1.85;
  margin-top: 1.1rem;
  max-width: 480px;
}
.sp-desc + .sp-desc { margin-top: 0.85rem; }

/* Trait slide-in list */
.sp-traits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/* Traits start hidden; JavaScript adds .visible */
.sp-trait {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  font-weight: 300;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.sp-trait.visible {
  opacity: 1;
  transform: translateX(0);
  color: rgba(255, 255, 255, 0.7);
}
.sp-trait strong { color: var(--white); font-weight: 600; }

.sp-trait-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.45rem;
}

/* Venn diagram container */
.sp-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-venn-wrap { width: 100%; max-width: 400px; }
.sp-venn-wrap svg { width: 100%; height: auto; overflow: visible; }

/* ── Venn SVG animation states ──
   All elements start invisible. JavaScript adds .lit sequentially. */
.vc {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.vc.lit { opacity: 1; }

.vc-centre {
  fill-opacity: 0;
  transition: fill-opacity 0.8s ease;
}
.vc-centre.lit { fill-opacity: 1; }

.vc-name,
.vc-tag {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.vc-name.lit,
.vc-tag.lit { opacity: 1; }

.vl {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.vl.lit { opacity: 1; }

.orbit-ring {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.orbit-ring.lit {
  opacity: 1;
  animation: spin 14s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* ── Gradient hairline separating Superpower from Experience ── */
#experience {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.0);
}
#experience::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--ink) 0%,
    rgba(255, 255, 255, 0.18) 35%,
    rgba(255, 255, 255, 0.18) 65%,
    var(--ink) 100%
  );
  margin: 0 4rem;
}
