/* WEAVER v8.0 / HERO ATMOSPHERE
   A finishing layer on top of APPROVED v7.2 semantics and geometry.
   Zero modification to scroll timeline, narrative text or stage data.
   Higgsfield plate is an enhancement ONLY: CSS gradient fallback always works.
*/
.hero-sticky-stage { isolation: isolate; }
.hero-sticky-stage::before { z-index:0; }
.hero-texture { z-index:0; opacity:.10; }
.hero-atmosphere {
  position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden;
  background:
    radial-gradient(ellipse 21% 45% at 73% 47%,rgba(91,173,142,.09),transparent 77%),
    radial-gradient(ellipse 33% 61% at 89% 73%,rgba(134,178,151,.045),transparent 83%),
    radial-gradient(ellipse 38% 35% at 73% 25%,rgba(157,213,176,.035),transparent 90%);
}
.hero-atmosphere:after {
  content:""; position:absolute; inset:-12% -10% -12% 49%;
  background:radial-gradient(ellipse 42% 41% at 51% 45%,rgba(153,217,179,.10) 0%,rgba(43,106,84,.035) 46%,transparent 76%);
  transform:translate3d(calc(var(--heroProgress,0) * -3%),calc(var(--heroProgress,0) * 2%),0);
  opacity:calc(.75 + var(--heroProgress,0) * .23);
  pointer-events:none;
}
.hero-art { isolation:isolate; }
.hero-art::before { opacity:.72; animation:none !important; }
.hero-lightplate {
  /* Higgsfield optical texture contains no visible object or typography. */
  position:absolute; inset:8% 2%; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(90deg,rgba(10,41,33,.44),rgba(10,41,33,.05) 47%,rgba(10,41,33,.14)),
    url('hero/hero-atmosphere.webp');
  background-position: center; background-size:cover;
  opacity: .17; filter:saturate(.53) blur(13px);
  mix-blend-mode:screen;
  -webkit-mask-image:radial-gradient(ellipse 53% 58% at 54% 49%,#000 8%,rgba(0,0,0,.67) 54%,transparent 100%);
  mask-image:radial-gradient(ellipse 53% 58% at 54% 49%,#000 8%,rgba(0,0,0,.67) 54%,transparent 100%);
  transform:scale(1.035);
}
.hero-refraction {
  position:absolute;inset:8%;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 36% 35% at 58% 48%,rgba(125,224,183,.14),rgba(58,116,92,.025) 65%,transparent 87%),
    radial-gradient(ellipse 26% 22% at 69% 29%,rgba(236,225,173,.06),transparent 86%);
  filter:blur(17px);
  opacity:calc(.54 + var(--heroProgress,0) * .22);
  transform:scale(calc(.95 + var(--heroProgress,0) * .09));
}
.hero-art .sculpt-svg { z-index:2; filter:drop-shadow(0 0 29px rgba(121,196,159,.08)); }
.hero-volume-wash { opacity:calc(.37 + var(--heroProgress,0) * .36); }
/* Fine bright edges make the original native SVG feel more like glass without changing its choreography. */
.hero-art .sculpt-shell ellipse:nth-of-type(3n + 1){stroke:url(#weaverGlassStroke);}
.hero-art .sculpt-shell ellipse:nth-of-type(7n + 3){stroke:url(#weaverGoldStroke);}
.hero-art .sculpt-shell ellipse:nth-of-type(5n + 2){stroke:#c8e8d7;stroke-opacity:.20;}
.hero-speculars { opacity:calc(.37 + var(--heroProgress,0) * .22); }
.hero-sticky-stage .art-caption { text-shadow:0 1px 8px rgba(5,23,19,.48); }
.hero-sticky-stage .hero-scene h1 em,
.hero-sticky-stage .hero-scene h2 em { color:#e4f5e8; }
/* Softer movement across the dark-to-light interlude. The next section remains untouched. */
.passage {
  height:clamp(150px,15vw,222px);
  background:linear-gradient(180deg,
    #0e3028 0%,#164235 15%,#366956 33%,#80ab95 61%,
    #dbe9de 85%,#fbfcfa 100%);
}
.passage:before {
  content:""; position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse 27% 68% at 69% -9%,rgba(201,238,218,.15),transparent 83%);
}
.passage-line { opacity:.6; height:65%; }
/* Navigation and copy are always on top; atmospheric imagery cannot intercept input. */
.hero-sticky-stage .hero-inner,.hero-sticky-stage .hero-foot,.hero-sticky-stage .meaning-chapter{z-index:2;}
@media(max-width:1100px){
  .hero-art .hero-lightplate{opacity:.135;}
}
@media(max-width:850px){
  .hero-art{opacity:.53;}
  .hero-lightplate{opacity:.12!important;filter:saturate(.3) blur(15px)}
  .hero-refraction{opacity:.36;}
  .passage{height:160px;}
}
@media(max-width:540px){
  .hero-art{opacity:.46;right:-53%;top:19%;}
  .hero-art .hero-lightplate{opacity:.10!important;}
  .hero-art .sculpt-svg{filter:drop-shadow(0 0 17px rgba(102,181,142,.065));}
  .hero-art .sculpt-shell ellipse{stroke-opacity:.22;}
  .hero-atmosphere:after{opacity:.4;}
  .passage{height:130px;background:linear-gradient(180deg,#0e3028 0%,#2d5a46 23%,#a2c2aa 65%,#fbfcfa 100%);}
}
@media(prefers-reduced-motion:reduce){
  .hero-lightplate,.hero-refraction,.hero-atmosphere:after{transition:none!important;}
}
html.weaver-motion-off .hero-lightplate,html.weaver-motion-off .hero-refraction{opacity:.13;}
