/* Hero v7.1 (Rupert 15 Nov 23:06 and 23:40): one premium scene behind the skins.
   Loaded only when PICKCS_HERO_V7=true (test site). Layers, back to front, all inside .v3-hero-bg:
   gradient mesh (bg) > topographic linework (.p1) > volumetric light (.p2, the only animated layer) > grain (.p3) > vignette.
   Skins sit above with static shadows. No blend modes, no filters that animate, nothing animated over the skins. */

/* 1. Remove every leftover decoration: lightning, stripes, sweep, grid, floor, sparks, per skin shine (the "swoosh" pieces) */
.v6-bolts, .v5-stripe, .v6-sweep, .v5-grid, .v6-floor, .v6-sparks { display: none !important; }
.v6-stage .sk-wrap::after, .v4-stage::before { content: none !important; display: none !important; animation: none !important; }
.v6-hero .v3-hero-bg.v6-bg::before, .v6-hero .v3-hero-bg.v6-bg::after { content: none; }

/* 2. Base: deep gradient mesh in brand colours */
.v6-hero .v3-hero-bg.v6-bg {
  overflow: hidden;
  background:
    radial-gradient(42% 55% at 76% 40%, rgba(255, 112, 32, .22), transparent 70%),
    radial-gradient(38% 50% at 88% 78%, rgba(255, 60, 120, .10), transparent 70%),
    radial-gradient(55% 65% at 58% 26%, rgba(132, 64, 255, .30), transparent 72%),
    radial-gradient(60% 60% at 12% 85%, rgba(30, 140, 255, .14), transparent 70%),
    radial-gradient(70% 80% at 20% 10%, rgba(90, 40, 200, .20), transparent 75%),
    linear-gradient(165deg, #0c0a24 0%, #090720 45%, #07071c 100%);
}

/* Reuse the three old panel spans as full bleed layers */
.v6-hero .v3-hero-bg .v6-panel {
  display: block; position: absolute; inset: 0; width: auto; height: auto; top: 0; right: 0;
  border: 0; box-shadow: none; background: none; transform: none; pointer-events: none;
}
/* 3. Topographic map contours, like a tactical overview, fading out towards the copy side */
.v6-hero .v3-hero-bg .v6-panel.p1 {
  background: url("fx/hero-topo.svg") center / cover no-repeat;
  opacity: .55;
  -webkit-mask-image: radial-gradient(85% 95% at 66% 48%, #000 35%, transparent 90%);
  mask-image: radial-gradient(85% 95% at 66% 48%, #000 35%, transparent 90%);
}
/* 4. Soft volumetric light from the top right, drifting very slowly (transform and opacity only, own layer) */
.v6-hero .v3-hero-bg .v6-panel.p2 {
  inset: -20% -10% -20% 20%;
  background:
    conic-gradient(from 200deg at 92% -6%, transparent 0deg, rgba(255, 170, 110, .10) 14deg, transparent 30deg, rgba(190, 140, 255, .08) 44deg, transparent 62deg),
    radial-gradient(50% 45% at 70% 40%, rgba(255, 140, 70, .10), transparent 70%);
  -webkit-mask-image: radial-gradient(closest-side at 65% 45%, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side at 65% 45%, #000 45%, transparent 100%);
  transform: translate3d(0, 0, 0);
  animation: v7light 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes v7light {
  from { transform: translate3d(-2%, -1%, 0) rotate(-1deg); opacity: .85; }
  to   { transform: translate3d(2%, 1.5%, 0) rotate(1deg); opacity: 1; }
}
/* 5. Fine film grain (static) */
.v6-hero .v3-hero-bg .v6-panel.p3 { display: block !important; background: url("fx/grain.svg") repeat; background-size: 220px 220px; opacity: .07; }
/* 6. Vignette ties it into one image and fades into the page below */
.v6-hero .v6-vignette {
  background:
    radial-gradient(120% 100% at 60% 45%, transparent 55%, rgba(4, 4, 14, .65) 100%),
    linear-gradient(180deg, transparent 72%, #07071c 100%);
}

/* 7. Skins: clean, static shadows. No translateZ or backface-hidden compositing
   layers (those paint a hard dark rectangle behind transparent WebP on iPhone). */
.v6-stage { overflow: visible; }
.v6-stage .v4-stack { isolation: auto; }
.v6-stage .sk-wrap {
  transform: rotate(var(--r));
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  background: transparent;
}
.v6-stage .sk-wrap .sk,
.v6-stage .sk-wrap.sk-lg .sk,
.v5-stage .v4-stack .sk-lg {
  animation: none !important;
  background: transparent !important;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55)) !important;
}
@media (hover: hover) and (pointer: fine) {
  .v6-stage .sk-wrap:hover { transform: rotate(var(--r)) translateY(-6px) scale(1.03); }
}

/* Mobile: keep the scene, drop the motion and the heavy mask */
@media (max-width: 860px) {
  /* One hero skin, centred, no rotation or overlap */
  .v6-stage .sk-wrap { display: none; }
  .v6-stage .sk-wrap.sk-hero {
    display: block;
    left: 50%;
    top: 50%;
    width: min(92%, 420px);
    transform: translate(-50%, -50%) rotate(0deg);
    z-index: 5;
    background: transparent;
  }
  .v6-stage .sk-wrap.sk-hero .sk {
    background: transparent !important;
    filter: drop-shadow(0 0 28px rgba(255, 130, 40, .45)) drop-shadow(0 0 56px rgba(255, 90, 20, .28)) drop-shadow(0 18px 22px rgba(0, 0, 0, .55)) !important;
    animation: none !important;
  }
  .v6-hero .v3-hero-bg .v6-panel.p2 { animation: none; inset: -10% -20% 30% 10%; }
  .v6-hero .v3-hero-bg .v6-panel.p1 { opacity: .12; background-size: 220% auto; background-position: 70% 30%; }
  .v6-hero .v3-hero-bg .v6-panel.p3 { display: none !important; }
  .v6-stage .sk-wrap.sk-hero:hover {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .v6-hero .v3-hero-bg .v6-panel.p2 { animation: none; }
}

/* 17 Nov: Desktop hero skin stack only. Mobile single-hero AWP stays as above. */
@media (min-width: 861px) {
  .v6-stage { overflow: hidden; }
  .v6-stage .v4-stack { inset: 5% 10% 16% 4%; }
}
