/* ORYXENT graft v2.1 — aurora + liquid glass onto the restored spec32 site.
   v2 changes (owner-reported: discontinuity/black edges, intro black-edge
   feel, no sense of flow — all confirmed at phone viewport):
   1. The aurora layer no longer uses z-index:-1 (a fixed negative-z layer
      does not paint in mobile WebKit — desktop Chrome painted it, which
      made earlier desktop checks misleading). It is now a regular fixed
      layer at z-index:0 and the page content (main, footer) is lifted
      above it; header (z 50) and intro overlays (z 190/200) already sit
      higher.
   2. Sections whose background is exactly the page colour (#060607 via
      var(--background)) are made transparent so one continuous aurora
      field runs under the whole page instead of alternating glow / solid
      black bands. Designed contrast sections are NOT touched.
   3. Drift is now real parallax: +-4.5% travel at four incommensurate
      speeds (29/43/59/83 s, alternating directions) plus a 47 s surge —
      movement is perceptible within seconds, still slow and calm.
   4. The hero blend overlay is feathered across its full height (no
      stop shorter than ~20%), so it no longer ends in a hard slanted
      edge mid-hero.
   5. The intro overlay gets a soft feathered halo behind the film strip
      (portrait phones show the square film as a bright band floating in
      black; the halo keeps it from reading as a pasted rectangle). The
      film, its choreography and the fly-to-logo are untouched.
   Hard rule kept: NO filter:blur on giant layers (mobile WebKit drops
   it). Aurora is pure gradients + masks. No striation layers (removed in
   v1.2 after the owner saw them as lines). */

html{background:#060607}
body{background:transparent}

/* ---------- layering: aurora at 0, content above ----------------------- */
.gx-aurora{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:#060607}
main,footer{position:relative;z-index:1}
.skip-link{z-index:300}

/* ---------- one continuous field: same-colour section bgs opened ------ */
.manifesto,.enterprise-beat,.nearyy-beat,.exchange-beat,.site-footer{background:transparent}

/* ---------- flowing aurora (visible strength, real parallax) ----------- */
.gx-aurora i{position:absolute;display:block;left:-25%;width:150%;height:54vh;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 34%,#000 76%,rgba(0,0,0,.85) 84%,transparent 100%);
  mask-image:linear-gradient(180deg,transparent 0%,#000 34%,#000 76%,rgba(0,0,0,.85) 84%,transparent 100%);
  will-change:transform,opacity}
.gx-aurora i:nth-child(1){--r:-7deg;--o:.92;top:-12%;
  background:linear-gradient(90deg,transparent 0%,rgba(18,150,140,.28) 22%,rgba(32,205,175,.36) 50%,rgba(24,150,180,.24) 78%,transparent 100%);
  animation:gx-drift2 29s ease-in-out infinite alternate,gx-surge2 47s ease-in-out infinite alternate}
.gx-aurora i:nth-child(2){--r:-5deg;--o:.88;top:22%;
  background:linear-gradient(90deg,transparent 0%,rgba(110,70,200,.26) 22%,rgba(165,90,230,.33) 50%,rgba(215,90,180,.24) 78%,transparent 100%);
  animation:gx-drift2 43s ease-in-out infinite alternate-reverse,gx-surge2 47s ease-in-out -13s infinite alternate}
.gx-aurora i:nth-child(3){--r:-8deg;--o:.82;top:52%;
  background:linear-gradient(90deg,transparent 0%,rgba(200,90,110,.20) 22%,rgba(235,130,120,.27) 50%,rgba(240,180,110,.19) 78%,transparent 100%);
  animation:gx-drift2 59s ease-in-out infinite alternate,gx-surge2 47s ease-in-out -29s infinite alternate}
.gx-aurora i:nth-child(4){--r:-6deg;--o:.8;top:80%;
  background:linear-gradient(90deg,transparent 0%,rgba(30,130,90,.16) 25%,rgba(40,170,120,.20) 55%,rgba(30,120,130,.14) 80%,transparent 100%);
  animation:gx-drift2 83s ease-in-out infinite alternate-reverse,gx-surge2 47s ease-in-out -7s infinite alternate}
.gx-aurora::after{content:"";position:absolute;inset:0;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E")}
@keyframes gx-drift2{from{transform:translate3d(-4.5%,-.8%,0) rotate(var(--r,0deg))}to{transform:translate3d(4.5%,1.2%,0) rotate(var(--r,0deg))}}
@keyframes gx-surge2{from{opacity:calc(var(--o,1)*.8)}to{opacity:calc(var(--o,1)*1.2)}}

/* ---------- aurora inside the homepage hero (feathered, no hard edge) ---
   The hero's ring film covers the whole section with its black stage
   baked in, so the fixed layer cannot show there. This overlay sits
   above the film (z-index 1, below the z-index 2 copy) in screen blend:
   it lifts only the film's dark pixels. Every gradient now fades over
   at least ~20% of the box and the violet still carries a hint at the
   bottom edge, handing off to the aurora field below the hero. */
.macro-hero::after{content:"";position:absolute;inset:-8% -4%;z-index:1;pointer-events:none;
  mix-blend-mode:screen;opacity:.55;
  background:
    linear-gradient(172deg,transparent 4%,rgba(24,160,150,.30) 30%,rgba(28,180,165,.13) 58%,transparent 88%),
    linear-gradient(184deg,transparent 40%,rgba(130,85,215,.22) 74%,rgba(170,95,190,.12) 100%);
  animation:gx-herodrift 67s ease-in-out infinite alternate}
@keyframes gx-herodrift{from{transform:translate3d(-2%,0,0)}to{transform:translate3d(2%,.8%,0)}}

/* ---------- hero bottom edge dissolved (v2.1) ----------------------------
   Owner's phone screenshot after v2: the aurora paints and the page is
   one field, except ONE straight horizontal line where the hero's opaque
   film island ends and the glowing Music section begins. The hero is the
   last opaque island on the page, so its bottom edge is masked out: the
   whole section (film + shade + blend overlay) fades from solid at 82%
   to transparent at 100% of its height and melts into the aurora field
   behind it. The hero copy lives in the top ~60% and is untouched. */
.macro-hero{-webkit-mask-image:linear-gradient(180deg,#000 82%,transparent 100%);mask-image:linear-gradient(180deg,#000 82%,transparent 100%)}

/* ---------- intro: feathered halo behind the film strip -----------------
   The overlay keeps its pure-black colour; this image layer paints above
   the colour and below the film itself, and fades with the overlay. */
.intro-overlay{background-image:radial-gradient(58% 32% at 50% 41%,rgba(130,150,170,.16),rgba(90,100,120,.07) 55%,rgba(0,0,0,0) 78%)}

/* ---------- liquid glass on the existing nav pill ---------------------- */
.site-header .nav-material{
  -webkit-backdrop-filter:blur(18px) saturate(170%) brightness(1.06);
  backdrop-filter:blur(18px) saturate(170%) brightness(1.06)}
.site-header .nav-material::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(100deg,transparent 40%,rgba(255,255,255,.05) 46%,rgba(255,255,255,.30) 50%,rgba(205,212,224,.14) 54%,transparent 62%);
  transform:translateX(-120%);
  animation:gx-sweep 17s ease-in-out infinite}
@keyframes gx-sweep{0%{transform:translateX(-120%)}15%{transform:translateX(120%)}100%{transform:translateX(120%)}}
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  .site-header .nav-material::after{display:none}}

@media (prefers-reduced-motion:reduce){
  .gx-aurora i{animation:none}
  .macro-hero::after{animation:none}
  .site-header .nav-material::after{animation:none;display:none}}
