/**
 * Motion hooks / section transitions — MOTION IMPLEMENT.
 * Content stays visible without JS (LCP-safe). GSAP enhances transform/opacity only.
 */

.section {
  position: relative;
}

.section-transition {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
  bottom: -1px;
  z-index: 1;
}

.section-transition--object-overlap {
  background: linear-gradient(180deg, transparent, rgba(10, 16, 32, 0.9));
}

.section-transition--diagonal {
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.15), transparent);
  height: 64px;
}

.section-transition--circuit-wave {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='rgba(34,211,238,0.35)' stroke-width='1.5' d='M0 24 Q150 0 300 24 T600 24 T900 24 T1200 24'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}

.section-transition--gradient-fade,
.section-transition--gradient-emerald {
  background: linear-gradient(180deg, transparent, #070b16);
  height: 80px;
}

.section-transition--gradient-emerald {
  background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.12), #070b16);
}

.section-transition--blob-overlap {
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(139, 92, 246, 0.22), transparent 70%);
  height: 96px;
}

.section-transition--glass-shelf {
  background: linear-gradient(180deg, transparent, rgba(14, 22, 44, 0.85));
  border-top: 1px solid rgba(34, 211, 238, 0.12);
}

.section-transition--dissolve {
  background: linear-gradient(180deg, transparent, rgba(7, 11, 22, 0.95));
  height: 64px;
}

/* LCP-safe: visible without JS */
[data-motion="reveal"],
.js-reveal {
  opacity: 1;
  transform: none;
}

[data-motion-scene="dual-token-hub"] {
  isolation: isolate;
  aspect-ratio: 16 / 10;
  min-height: 320px;
}

[data-motion-scene="dual-token-hub"].is-webgl-ready .hero-three__poster {
  opacity: 0.35;
  transition: opacity 0.6s ease;
}

[data-motion-scene="dual-token-hub"] .hero-three__canvas {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

[data-motion-scene="dual-token-hub"].is-webgl-ready .hero-three__canvas {
  opacity: 1;
}

[data-motion-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

[data-motion-bob] {
  will-change: transform;
  display: inline-block;
}

[data-motion-draw] {
  color: rgba(34, 211, 238, 0.75);
}

.blog-card {
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
}

[data-reduced-motion="true"] [data-motion-bob],
[data-reduced-motion="true"] [data-motion-tilt],
[data-reduced-motion="true"] .blog-card:hover {
  will-change: auto;
  transform: none !important;
}

[data-reduced-motion="true"] [data-motion-scene="dual-token-hub"] .hero-three__canvas {
  display: none;
}

[data-reduced-motion="true"] [data-motion-scene="dual-token-hub"] .hero-three__poster {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .blog-card:hover {
    transform: none;
  }

  [data-motion-bob],
  [data-motion-tilt] {
    transform: none !important;
  }

  [data-motion-scene="dual-token-hub"] .hero-three__canvas {
    display: none;
  }

  [data-motion-scene="dual-token-hub"] .hero-three__poster,
  [data-motion="reveal"],
  .js-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
