/* NBS hero — the scroll journey, lifted from the standalone prototype and
   scoped so it cannot touch anything else on the page. Generated; edit the
   prototype and rebuild rather than patching this file by hand. */
:root{
  --nbsx-mag:#ff00a7; --nbsx-mag-lt:#ff5cc6;
  --nbsx-ind:#4800ff; --nbsx-ind-lt:#8b7bff;
  --nbsx-peri:#7364ec;
  --nbsx-bg-0:#05040c; --nbsx-bg-1:#080714;
  --nbsx-surface:rgba(255,255,255,.045); --nbsx-surface-2:rgba(255,255,255,.07);
  --nbsx-line:rgba(140,125,235,.16); --nbsx-line-2:rgba(140,125,235,.30);
  --nbsx-text:#f6f4ff; --nbsx-muted:#bcb6da; --nbsx-faint:#8b84ad;
  --nbsx-grad:linear-gradient(100deg,var(--nbsx-mag),var(--nbsx-ind));
  --nbsx-grad-soft:linear-gradient(100deg,#ff63c4,#9a86ff);
  --nbsx-shadow:0 24px 60px -20px rgba(72,0,255,.5);
  --nbsx-maxw:1180px; --nbsx-ease:cubic-bezier(.22,.61,.36,1);
}

/* The block itself: opaque and self-contained, four screens tall. */
#nbsx-hero{position:relative;z-index:1;background:transparent;color:var(--nbsx-text);
  font-family:"Epilogue",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.6;isolation:isolate}
#nbsx-hero *{box-sizing:border-box}
#nbsx-hero a{color:inherit;text-decoration:none}
/* Fixed, NOT sticky. The theme sets `overflow-x:hidden` on <body>, which makes
   the body a scroll container and quietly breaks position:sticky — the canvas
   scrolled away with the page and the chapters played over a black rectangle.
   Fixed is immune to that; the observer in hero.js hides the stage the moment
   the hero leaves the viewport, so it never shows through the white sections
   further down the page. */
#nbsx-hero .nbsx-stage{position:fixed;inset:0;height:100vh;z-index:0;overflow:hidden;
  transition:opacity .4s ease,visibility .4s}
/* display, not just visibility: a hidden-but-present full-screen canvas keeps
   its composited layer in the GPU process for as long as the tab lives. */
#nbsx-hero.nbsx-off .nbsx-stage{opacity:0;visibility:hidden;display:none}
#nbsx-hero #webgl{width:100%;height:100%;display:block;
  background:radial-gradient(120% 90% at 70% 18%, #15103a 0%, #0a0820 38%, #05040c 78%)}
#nbsx-hero.no-webgl #webgl{background:radial-gradient(60% 50% at 70% 32%, rgba(72,0,255,.4), transparent 70%),radial-gradient(50% 40% at 30% 70%, rgba(255,0,167,.22), transparent 70%),radial-gradient(120% 90% at 70% 18%, #15103a 0%, #0a0820 40%, #05040c 80%)}
/* The chapters sit on top of the fixed stage. */
#nbsx-hero .journey{position:relative;z-index:1}
#nbsx-hero .wrap{width:100%;max-width:var(--nbsx-maxw);margin-inline:auto;padding-inline:clamp(20px,5vw,40px)}

/* ---------- shared text type ---------- */
#nbsx-hero .eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:12.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--nbsx-muted);border:1px solid var(--nbsx-line);background:rgba(255,255,255,.03);backdrop-filter:blur(8px);padding:8px 15px;border-radius:100px;margin-bottom:24px}
#nbsx-hero .eyebrow .dot{width:7px;height:7px;border-radius:50%;background:var(--nbsx-mag);box-shadow:0 0 12px var(--nbsx-mag);animation:pulseDot 2.4s var(--nbsx-ease) infinite}
@keyframes pulseDot{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.65)}}
#nbsx-hero .g-mag{background:linear-gradient(100deg,var(--nbsx-mag),var(--nbsx-mag-lt));-webkit-background-clip:text;background-clip:text;color:transparent}
#nbsx-hero .g-ind{background:linear-gradient(100deg,var(--nbsx-ind-lt),#b3a6ff);-webkit-background-clip:text;background-clip:text;color:transparent}
#nbsx-hero .kicker{display:inline-flex;align-items:center;gap:9px;font-size:12.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--nbsx-ind-lt);margin-bottom:18px}
#nbsx-hero .kicker .bar{width:26px;height:2px;background:var(--nbsx-grad);border-radius:2px}
#nbsx-hero h2.h2{font-size:clamp(2rem,4.6vw,3.4rem);line-height:1.05;font-weight:800;letter-spacing:-.02em;max-width:18ch}
#nbsx-hero .sec-sub{color:var(--nbsx-muted);font-size:clamp(1rem,1.5vw,1.14rem);max-width:64ch;margin-top:18px}
#nbsx-hero .sec-pad{padding-block:clamp(70px,9vw,120px)}
#nbsx-hero .lead{font-size:clamp(1.04rem,1.7vw,1.22rem);color:#d4cfee;max-width:560px;margin-bottom:34px;text-shadow:0 1px 20px rgba(5,4,12,.7)}
#nbsx-hero .lead b{color:#fff;font-weight:600}
#nbsx-hero .hero-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
#nbsx-hero .legend{display:flex;gap:18px;flex-wrap:wrap;margin-top:30px;font-size:12.5px;color:var(--nbsx-muted)}
#nbsx-hero .legend span{display:inline-flex;align-items:center;gap:8px}.legend i{width:9px;height:9px;border-radius:50%;display:inline-block}
#nbsx-hero .lg-mag{background:var(--nbsx-mag);box-shadow:0 0 12px var(--nbsx-mag)}.lg-ind{background:var(--nbsx-ind-lt);box-shadow:0 0 12px var(--nbsx-ind)}

/* ---------- home flythrough chapters ---------- */
#nbsx-hero .journey{position:relative;z-index:2}
#nbsx-hero .chapter{min-height:100svh;display:flex;align-items:center;position:relative;padding-top:74px}
#nbsx-hero .chapter::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(820px 680px at var(--sx,28%) 50%, rgba(5,4,12,.82), rgba(5,4,12,.4) 38%, transparent 66%)}
#nbsx-hero .chapter.center{justify-content:center;text-align:center}.chapter.center::after{--sx:50%}
#nbsx-hero .chap{max-width:640px}.chapter.center .chap{max-width:680px;padding-inline:24px}
#nbsx-hero .chapnum{display:inline-flex;align-items:center;gap:9px;font-size:12.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--nbsx-ind-lt);margin-bottom:18px}
#nbsx-hero .chapnum .bar{width:26px;height:2px;background:var(--nbsx-grad);border-radius:2px}
#nbsx-hero .chap h2{font-size:clamp(2.1rem,5.4vw,3.8rem);font-weight:800;letter-spacing:-.022em;line-height:1.03;text-shadow:0 2px 50px rgba(5,4,12,.85)}
#nbsx-hero .chap p{color:#d4cfee;font-size:clamp(1.02rem,1.6vw,1.22rem);margin-top:18px;max-width:46ch;text-shadow:0 1px 30px rgba(5,4,12,.9)}
#nbsx-hero .chapter.center .chap p{margin-inline:auto}
#nbsx-hero h1.title{font-size:clamp(2.7rem,6.6vw,5rem);line-height:1.0;font-weight:800;letter-spacing:-.027em;margin-bottom:24px;text-shadow:0 2px 40px rgba(5,4,12,.6)}
#nbsx-hero .chap{opacity:var(--vis,1);transform:translateY(calc((1 - var(--vis,1)) * 24px));transition:opacity .15s linear}
#nbsx-hero .scroll-cue{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);z-index:2;display:flex;flex-direction:column;align-items:center;gap:9px;color:var(--nbsx-faint);font-size:11px;letter-spacing:.22em;text-transform:uppercase}
#nbsx-hero .scroll-cue .mouse{width:24px;height:38px;border:1.6px solid var(--nbsx-line-2);border-radius:14px;position:relative}
#nbsx-hero .scroll-cue .mouse::after{content:"";position:absolute;top:7px;left:50%;transform:translateX(-50%);width:4px;height:7px;border-radius:3px;background:var(--nbsx-ind-lt);animation:scrollWheel 1.8s var(--nbsx-ease) infinite}
@keyframes scrollWheel{0%{opacity:0;transform:translate(-50%,0)}40%{opacity:1}80%{opacity:0;transform:translate(-50%,12px)}100%{opacity:0}}

#nbsx-hero .btn{display:inline-flex;align-items:center;gap:9px;font-weight:600;font-size:14.5px;border-radius:100px;padding:11px 20px;cursor:pointer;border:1px solid transparent;transition:transform .2s var(--nbsx-ease),box-shadow .3s,background .3s,border-color .3s;white-space:nowrap}
#nbsx-hero .btn:active{transform:translateY(1px) scale(.99)}
#nbsx-hero .btn-ghost{color:var(--nbsx-text);border-color:var(--nbsx-line-2);background:var(--nbsx-surface);backdrop-filter:blur(6px)}
#nbsx-hero .btn-ghost:hover{border-color:var(--nbsx-ind-lt);background:var(--nbsx-surface-2)}
#nbsx-hero .btn-primary{color:#fff;background:var(--nbsx-grad);background-size:160% 160%;box-shadow:var(--nbsx-shadow);position:relative;overflow:hidden}
#nbsx-hero .btn-primary:hover{transform:translateY(-2px);box-shadow:0 28px 70px -18px rgba(255,0,167,.6)}
#nbsx-hero .btn-primary::after{content:"";position:absolute;top:0;left:-120%;width:60%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-18deg);transition:left .6s var(--nbsx-ease)}
#nbsx-hero .btn-primary:hover::after{left:140%}
#nbsx-hero .btn-sm{padding:9px 16px;font-size:13.5px}
@keyframes nbsxSpin{to{transform:rotate(360deg)}}
@media (max-width:760px){#nbsx-hero .chapter{padding-top:56px}}
