
.pyris-social{position:fixed;right:22px;bottom:23px;display:flex;gap:8px;z-index:980;align-items:center}
.pyris-social-link{width:37px;height:37px;display:flex;align-items:center;justify-content:center;border:1px solid #707070;background:rgba(7,7,8,.84);border-radius:50%;backdrop-filter:blur(18px);transition:transform .2s,border-color .2s}
.pyris-social-link:hover{transform:translateY(-3px);border-color:#f5f5f5}
.pyris-social-link img{width:19px;height:19px;object-fit:contain}
.pyris-social-link.x-mark{color:#fff;font-family:Inter,Arial,sans-serif;font-size:16px;font-weight:700;text-decoration:none}
#pyris-fallback{display:none;color:#f6f6f6;min-height:100vh;overflow-x:hidden;background:#050505;position:relative;z-index:100;font-family:'Inter Tight',Inter,Arial,sans-serif}
.pyris-no-webgl body{height:auto!important;overflow-y:auto!important}
.pyris-no-webgl #gl,.pyris-no-webgl #hud,.pyris-no-webgl #intro,.pyris-no-webgl .top,.pyris-no-webgl #cursor,.pyris-no-webgl #veil,.pyris-no-webgl #notes,.pyris-no-webgl #realm,.pyris-no-webgl #rail,.pyris-no-webgl .hints,.pyris-no-webgl .progress,.pyris-no-webgl #panel,.pyris-no-webgl #panel-scrim{display:none!important}
.pyris-no-webgl #pyris-fallback{display:block!important}
.zfb-top{padding:24px 5vw;border-bottom:1px solid #292929;display:flex;justify-content:space-between;align-items:center;gap:22px;position:relative;z-index:2}
.zfb-top a{color:#f1f1f1;text-decoration:none;font-size:11px;letter-spacing:.11em}
.zfb-brand{font-size:17px!important;letter-spacing:.14em!important;font-weight:700;display:flex;align-items:center;gap:12px}
.zfb-brand img{width:29px;height:29px;object-fit:contain}
.zfb-top>div{display:flex;gap:25px;flex-wrap:wrap}
.zfb-hero{position:relative;isolation:isolate;min-height:72vh;display:flex;align-items:flex-start;flex-direction:column;justify-content:center;padding:70px 7vw;overflow:hidden}
.zfb-halo{position:absolute;z-index:-1;right:-7vw;top:4%;width:65vw;height:65vw;max-height:820px;max-width:820px;border-radius:50%;border:1px solid #4a4a4a;box-shadow:0 0 0 60px #ffffff03,0 0 0 120px #ffffff03,0 0 0 180px #ffffff02;transform:rotateX(52deg) rotate(-20deg);background:radial-gradient(circle at 45% 40%,#ffffff32,transparent 52%),#ffffff05}
.zfb-tag{color:#a3a3a3;font-size:11px;letter-spacing:.16em;margin-bottom:23px}
.zfb-hero h1{font-size:clamp(48px,7vw,122px);font-weight:400;letter-spacing:-.075em;line-height:.94;margin:0 0 27px}
.zfb-hero em{font-style:normal;color:#858585}
.zfb-hero>p:not(.zfb-tag){max-width:490px;color:#aaa;font-size:clamp(15px,1.7vw,20px);line-height:1.6}
.zfb-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:27px}
.zfb-actions a{border:1px solid #eee;padding:15px 20px;color:white;text-decoration:none;font-size:11px;letter-spacing:.1em}
.zfb-actions a:first-child{background:#f1f1f1;color:#090909}
.zfb-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:0 7vw 85px}
.zfb-grid>div{border-top:1px solid #666;padding-top:25px}.zfb-grid span{color:#888;font-size:11px;letter-spacing:.1em}
.zfb-grid h2{font-size:clamp(18px,2vw,27px);font-weight:400;margin:23px 0}.zfb-grid p{color:#888;line-height:1.7;max-width:290px}
.zfb-bottom{border-top:1px solid #333;padding:28px 7vw;display:flex;justify-content:space-between;font-size:10px;color:#777;letter-spacing:.1em}
@media(max-width:700px){.pyris-social{right:12px;bottom:12px}.pyris-social-link{width:32px;height:32px}.zfb-top{padding:18px 5vw}.zfb-top>div{gap:13px}.zfb-top a{font-size:8px}.zfb-top>a{font-size:14px!important}.zfb-hero{min-height:68vh;padding:70px 6vw}.zfb-halo{width:100vw;height:100vw;top:12%;opacity:.6}.zfb-grid{grid-template-columns:1fr;gap:35px}.zfb-bottom{padding-bottom:80px}}

.pyris-no-webgl,.pyris-no-webgl body{overflow-y:auto!important;height:auto!important;min-height:100%!important}

/* PYRIS light theme: invert the whole rendered page (white ground, black particles) while
   keeping hues. Logos are forced to solid black in the final render. */
html, body { background: #fff !important; }
/* DOM overlays invert here; the WebGL canvas inverts in its own output shader (no per-frame CSS filter on the canvas). */
body > *:not(#gl):not(script) { filter: invert(1) hue-rotate(180deg); }
img { filter: brightness(0) invert(1); }

/* Intro, refined. Colors are written pre-invert: #f5f5f5 renders near-black, #050505 renders white. */
.intro-kicker { margin: 0; letter-spacing: .28em; font-size: 11px; opacity: .6; text-transform: uppercase; }
.intro-line { font-size: clamp(36px, 4.8vw, 72px) !important; line-height: 1.02 !important; letter-spacing: -.035em !important; font-weight: 400 !important; }
.intro-line .soft { font-weight: 300; }
.intro-bottom { gap: 22px !important; }
.enters { gap: 12px !important; margin-top: 6px; }
#enter { background: #f5f5f5 !important; color: #050505 !important; border-color: #f5f5f5 !important; padding: 16px 30px !important; letter-spacing: .2em !important; }
#enter i { color: #050505 !important; opacity: .7; }
#enter-sound { padding: 16px 26px !important; letter-spacing: .2em !important; border-color: rgba(245,245,245,.28) !important; }
#enter:hover { transform: translateY(-1px); }
.intro-how { font-size: 10px !important; letter-spacing: .24em !important; opacity: .55; }
#enter[hidden] { display: none !important; }
.intro-scroll { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; letter-spacing: .28em; font-size: 11px; text-transform: uppercase; }
.intro-scroll i { width: 1px; height: 34px; background: linear-gradient(#050505, transparent); background: linear-gradient(rgba(245,245,245,.9), transparent); animation: pyris-cue 1.8s cubic-bezier(.6,0,.2,1) infinite; transform-origin: top; }
@keyframes pyris-cue { 0% { transform: scaleY(0); opacity: 1 } 60% { transform: scaleY(1); opacity: 1 } 100% { transform: scaleY(1); opacity: 0 } }
.intro-line { font-size: clamp(30px, 3.6vw, 54px) !important; }
.intro-how { display: none !important; }
#intro { padding-bottom: 5vh !important; }

/* No numbering anywhere in the journey */
.steps .n, .claims i, .cz-n, #realm .rm-n, .progress-n, .progress-t { display: none !important; }
#rail a, #rail button, #rail span, #rail li { font-size: 0 !important; letter-spacing: 0 !important; }
#boot { display: none !important; }

/* Text breathing room: wider gutter, fixed column width so absolutely positioned steps never collapse */
:root { --gutter: clamp(28px, 6vw, 104px) !important; }
@media (min-width: 761px) { .ch-left { width: min(520px, 40vw); } }
.steps { height: 170px !important; }
.steps span:last-child { display: block; max-width: 440px; }
.claims li:after { content: "Passed" !important; }
.hints { display: none !important; }
.claims li:after { content: "Onchain" !important; }

/* Seamless loop: when the last scene scrolls on, the page fades to the paper colour while the camera
   jumps back to the first scene, then fades back in. body::after is outside the inverted overlays. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: #fafafa;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
body.looping::after {
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  body::after,
  body.looping::after {
    transition-duration: 0.01s;
  }
}
