/* ═══════════════════════════════════════════════════
   WhatIsTheR3SET.com — Phase 3 Enhancements
   Noise textures, GSAP helpers, ecosystem viz
   ═══════════════════════════════════════════════════ */

/* ── Global noise texture on dark sections ─────── */
.section--dark {
  position: relative;
}
.section--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}
.section--dark > * {
  position: relative;
  z-index: 1;
}

/* ── GSAP animation helpers ────────────────────── */
.gsap-fade-up {
  opacity: 0;
  transform: translateY(30px);
}
.gsap-fade-in {
  opacity: 0;
}
.gsap-slide-left {
  opacity: 0;
  transform: translateX(-40px);
}
.gsap-slide-right {
  opacity: 0;
  transform: translateX(40px);
}

/* ── Interactive ecosystem visualization ──────── */
.eco-viz {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}
.eco-viz canvas {
  width: 100%;
  height: 100%;
}

.eco-viz__label {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
  pointer-events: auto;
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(26,26,26,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  z-index: 2;
}
.eco-viz__label:hover {
  background: rgba(26,26,26,0.95);
  border-color: var(--color-coral);
  transform: scale(1.05);
}
.eco-viz__label--center {
  font-size: var(--text-lg);
  background: var(--color-coral);
  border-color: var(--color-coral);
  color: white;
}
.eco-viz__label--center:hover {
  background: #d4323f;
  border-color: #d4323f;
}
.eco-viz__label .status {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: var(--space-2);
  vertical-align: middle;
}
.eco-viz__label .status--live { background: #4ade80; }
.eco-viz__label .status--dev { background: var(--color-gold); }
.eco-viz__label .status--planned { background: var(--color-text-faint); }

/* Mobile: simplify ecosystem viz */
@media (max-width: 767px) {
  .eco-viz {
    aspect-ratio: auto;
    min-height: 400px;
  }
  .eco-viz__label {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
  }
  .eco-viz__label--center {
    font-size: var(--text-sm);
  }
}

/* ── Enhanced card hover states ────────────────── */
.pillar-card,
.service-card,
.principle-card,
.founder-card,
.case-study,
.testimonial-card,
.next-card,
.org-item,
.pathway-card,
.eco-node {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
}
.pillar-card:hover,
.service-card:hover,
.founder-card:hover,
.case-study:hover,
.testimonial-card:hover,
.next-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.12);
}

/* ── Section transitions (subtle color shift) ──── */
.section--light {
  position: relative;
}
.section--light::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-light));
  pointer-events: none;
  z-index: 0;
}
.section--light::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--color-bg), var(--color-bg-light));
  pointer-events: none;
  z-index: 0;
}
.section--light > * {
  position: relative;
  z-index: 1;
}

/* ── Parallax depth helpers ────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .parallax-slow { will-change: transform; }
  .parallax-fast { will-change: transform; }
}
