/* ==========================================================================
   Interstellar Gargantua Black Hole Visuals & Black-Gold Luxury Motion Layer
   Owned by @blackhole-fx — zero external dependencies, pure CSS FX layer
   ========================================================================== */

/* --- 1. Persistent Hero Gargantua Black Hole & Obsidian-Gold Stage --- */

.hero .cosmos-stage {
  background:
    radial-gradient(circle at 63% 49%, rgba(218, 174, 84, 0.12), transparent 34rem),
    radial-gradient(circle at 60% 50%, rgba(122, 73, 20, 0.09), transparent 24rem),
    linear-gradient(180deg, #040406 0%, #070609 54%, #050508 100%);
  isolation: isolate;
}

/* Retire legacy mechanical CSS grid, polka-dot starfield & flat wireframe rings */
.hero .cosmos-stage::before,
.hero .cosmos-stage .starfield,
.hero .cosmos-stage .starfield-far,
.hero .cosmos-stage .starfield-near,
.hero .cosmos-stage .cosmic-gate,
.hero .cosmos-stage .planet-orbit,
.hero .cosmos-stage .cosmic-ray,
.hero .cosmos-stage .floating-dust {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Soft bottom void-obsidian threshold so Hero melts cleanly into Section 2 */
.hero .cosmos-stage::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(4, 4, 6, 0.34) 0%,
      transparent 16%,
      transparent 76%,
      rgba(5, 5, 8, 0.76) 93%,
      #060609 100%
    );
}

/* Whisper-soft antique-gold & smoked-obsidian nebula breath behind Gargantua */
.hero .cosmos-stage .nebula {
  z-index: 1;
  opacity: 0.3;
  filter: blur(76px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
  animation: bhNebulaBreath 13.6s ease-in-out infinite alternate;
}

.hero .cosmos-stage .nebula-a {
  top: 12%;
  left: 38%;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(
    circle,
    rgba(218, 174, 84, 0.13),
    rgba(122, 73, 20, 0.06) 44%,
    transparent 72%
  );
}

.hero .cosmos-stage .nebula-b {
  right: 2%;
  bottom: 8%;
  width: 42vw;
  height: 42vw;
  animation-delay: -6.8s;
  background: radial-gradient(
    circle,
    rgba(198, 140, 46, 0.1),
    rgba(43, 23, 6, 0.07) 42%,
    transparent 70%
  );
}

.hero-blackhole-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transform-origin: 63% 49%;
  will-change: transform, opacity;
}

@keyframes bhNebulaBreath {
  0% {
    opacity: 0.24;
    transform: translate3d(-1%, -0.6%, 0) scale(0.97);
  }
  100% {
    opacity: 0.38;
    transform: translate3d(1.2%, 0.9%, 0) scale(1.06);
  }
}

/* --- 2. Opening Veil Staging (Centered Gargantua Handoff Into Hero) --- */

.opening-veil {
  background: radial-gradient(circle at 50% 50%, #090706 0%, #040406 58%, #020203 100%);
}

.opening-veil::before {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(2, 2, 4, 0.12) 0 18%,
    rgba(4, 4, 6, 0.12) 48%,
    rgba(2, 2, 4, 0.74) 100%
  );
}

.opening-veil::after {
  background: linear-gradient(
    180deg,
    rgba(3, 3, 5, 0.36),
    transparent 28%,
    transparent 72%,
    rgba(3, 3, 5, 0.48)
  );
}

.fall-scene {
  background: #040406;
}

.fall-scene::after {
  background: radial-gradient(
    circle at 50% 50%,
    transparent 0 22%,
    rgba(4, 4, 6, 0.16) 54%,
    rgba(2, 2, 4, 0.76) 100%
  );
  opacity: 0.44;
}

.black-hole-canvas {
  filter: none;
  opacity: 1;
}

.opening-frame h2 {
  color: #fff6df;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.9),
    0 0 48px rgba(238, 194, 98, 0.28);
}

.opening-frame-summary {
  padding: 6px 22px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(4, 4, 6, 0.68) 0%,
    rgba(4, 4, 6, 0.38) 64%,
    transparent 100%
  );
  color: rgba(255, 246, 223, 0.88);
  text-shadow:
    0 1px 10px rgba(2, 2, 4, 0.98),
    0 4px 26px rgba(2, 2, 4, 0.94),
    0 0 42px rgba(2, 2, 4, 0.84);
}

.opening-skip {
  padding: 6px 15px;
  border: 1px solid rgba(230, 202, 126, 0.28);
  border-radius: 999px;
  background: rgba(8, 7, 10, 0.54);
  color: rgba(255, 246, 223, 0.72);
  backdrop-filter: blur(10px);
  transition:
    color 280ms ease,
    border-color 280ms ease,
    background 280ms ease;
}

.opening-skip:hover,
.opening-skip:focus-visible {
  border-color: rgba(238, 194, 98, 0.68);
  background: rgba(20, 16, 10, 0.8);
  color: #fff6df;
}

/* --- 3. Molten Champagne-Gold Mysterious Cursor Aura --- */

.cursor-orb {
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(232, 196, 114, 0.16) 0%,
    rgba(186, 132, 44, 0.075) 34%,
    rgba(122, 73, 20, 0.024) 56%,
    transparent 74%
  );
  filter: blur(5px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
  transition:
    width 480ms cubic-bezier(0.22, 1, 0.36, 1),
    height 480ms cubic-bezier(0.22, 1, 0.36, 1),
    background 480ms ease;
}

.cursor-orb.is-interactive {
  width: 344px;
  height: 344px;
  background: radial-gradient(
    circle,
    rgba(247, 223, 156, 0.21) 0%,
    rgba(201, 140, 46, 0.095) 36%,
    rgba(122, 73, 20, 0.03) 58%,
    transparent 76%
  );
}

@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .cursor-orb {
    display: none !important;
  }
}

/* --- 4. Calm Meditative Scroll-Reveal & Black-Gold Interactive Micro-Motion --- */

.gsap-ready .reveal {
  transform: translateY(22px);
  will-change: transform, opacity;
}

.gsap-ready .reveal.is-revealed {
  transform: none;
  will-change: auto;
}

/* Serene breathing scroll cue in molten gold */
.scroll-cue span {
  position: relative;
  overflow: hidden;
}

.scroll-cue span::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 246, 223, 0.94), rgba(238, 194, 98, 0.65), transparent);
  content: "";
  animation: bhScrollBreath 3.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes bhScrollBreath {
  0% {
    transform: translateY(0%);
    opacity: 0;
  }
  25% {
    opacity: 0.92;
  }
  75% {
    opacity: 0.72;
  }
  100% {
    transform: translateY(220%);
    opacity: 0;
  }
}

/* Tactile meditative black-gold hover luminescence across all editorial surfaces
   (strictly keep transform & opacity free for GSAP .reveal and [data-tilt] tweens) */
.seal-card,
.orbit-card,
.constellation-item,
.journey-panel,
.cert-card,
.price-panel,
.qr-card,
.accordion details {
  transition:
    border-color 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 520ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.seal-card:hover,
.orbit-card:hover,
.journey-panel:hover {
  border-color: rgba(230, 202, 126, 0.46);
  box-shadow:
    0 26px 76px rgba(0, 0, 0, 0.56),
    0 0 38px rgba(218, 174, 84, 0.1),
    inset 0 1px 0 rgba(247, 223, 156, 0.18);
}

.constellation-item:hover {
  border-color: rgba(230, 202, 126, 0.36);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(238, 194, 98, 0.16);
}

.cert-card:hover,
.price-panel:hover,
.qr-card:hover {
  border-color: rgba(238, 194, 98, 0.5);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.58),
    0 0 46px rgba(218, 174, 84, 0.12);
}

.cert-preview img {
  transition: transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cert-preview:hover img,
.cert-preview:focus-visible img {
  transform: scale(1.028);
}

.cert-zoom {
  transition:
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 380ms ease,
    border-color 380ms ease,
    color 380ms ease;
}

.cert-preview:hover .cert-zoom,
.cert-preview:focus-visible .cert-zoom {
  transform: scale(1.06);
}

.accordion details {
  will-change: border-color;
}

.accordion details summary {
  transition: color 320ms ease;
}

.accordion details[open] > p {
  animation: bhFaqReveal 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bhFaqReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.evolution-system-item {
  transition:
    border-color 540ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 540ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 540ms cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-contact {
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 360ms ease,
    border-color 360ms ease,
    filter 360ms ease;
}

.floating-contact:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.56),
    0 0 32px rgba(230, 202, 126, 0.28);
}

/* --- 5. Mobile Gargantua Canopy Focal Origin --- */

@media (max-width: 760px) {
  .hero .cosmos-stage {
    background:
      radial-gradient(circle at 50% 26%, rgba(218, 174, 84, 0.14), transparent 22rem),
      radial-gradient(circle at 50% 26%, rgba(122, 73, 20, 0.08), transparent 13rem),
      linear-gradient(180deg, #040406 0%, #070609 48%, #050508 100%);
  }

  .hero-blackhole-canvas {
    transform-origin: 50% 26%;
  }

  .hero .cosmos-stage .nebula-a {
    top: 4%;
    left: 12%;
    width: 76vw;
    height: 76vw;
  }

  .hero .cosmos-stage .nebula-b {
    right: 6%;
    bottom: 24%;
    width: 62vw;
    height: 62vw;
  }
}

/* --- 6. Reduced-Motion Sanctuary --- */

@media (prefers-reduced-motion: reduce) {
  .hero-blackhole-canvas {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .hero .cosmos-stage .nebula,
  .scroll-cue span::after,
  .accordion details[open] > p {
    animation: none !important;
  }

  .cursor-orb {
    display: none !important;
  }
}
