/* The legacy universe (src/orb.html, js/orb.js), shared by every page that uses {{orb}}, and the full-size viewer for trader posts. */
/* legacy: the universe, lit. A glass globe on the brand video (the video shows through it), drawn by js/orb.js.
   The stage is sticky while the page scrolls through five scenes; each scene has its own colour and its own motion:
   a swarm of traders, a ring of gold coins, dial arcs for the years, light crossing the globe for the community, and the
   last one gathers every post. .on is added by the script; without it the section is a plain title and five facts. */
.orb-sec { padding-top: clamp(16px, 3vw, 44px); }
.orb-sec .h2 { font-size: clamp(26px, 2.9vw, 42px); text-shadow: 0 2px 30px rgba(2,12,48,.7); }
.orb-sec .h2 em { background: linear-gradient(90deg, #a8e4ff, #b9f482); -webkit-background-clip: text; background-clip: text; color: transparent; }
.orb { position: relative; }
.orb.on { height: 250vh; height: calc(100svh + 150vh); }
.orb.on .orb-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.orb-cv { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); }
.orb-posts { position: absolute; inset: 0; pointer-events: none; }
.orb-posts img { position: absolute; left: 0; top: 0; width: var(--fw, 360px); height: auto; will-change: transform, opacity; pointer-events: auto; border-radius: 12px; box-shadow: 0 26px 60px -18px rgba(0,10,50,.8), 0 0 0 1px rgba(255,255,255,.22); }
.orb-title { position: absolute; left: 0; right: 0; top: clamp(88px, 12.5vh, 124px); z-index: 10; padding: 0 20px; text-align: center; }
.orb-facts { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.orb-fact { position: absolute; left: var(--ux, 50%); top: var(--uy, 57%); width: max-content; max-width: var(--um, 460px); text-align: center; transform: translate(-50%, -50%); will-change: transform, opacity; }
.orb-fact b { display: block; font-size: clamp(36px, 4.5vw, 66px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 36%, var(--n1)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 26px rgba(var(--ng),.75)) drop-shadow(0 2px 10px rgba(2,12,48,.6)); }
.orb-fact.long b { font-size: clamp(25px, 2.9vw, 42px); letter-spacing: -.02em; line-height: 1.14; }
.orb-fact span { display: block; margin-top: 10px; font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; line-height: 1.45; color: #fff; text-shadow: 0 1px 16px rgba(2,12,48,.9); }
.f-cy { --n1: #8fdcff; --ng: 0,168,232; } .f-gr { --n1: #b9f482; --ng: 120,215,36; } .f-wh { --n1: #ffe2a0; --ng: 255,190,72; }
.orb-ticks { position: absolute; left: 50%; bottom: 26px; z-index: 10; display: flex; gap: 8px; translate: -50% 0; }
.orb-ticks i { width: 20px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.32); transition: width .35s var(--ease), background .3s; }
.orb-ticks i.on { width: 40px; background: var(--lgreen); box-shadow: 0 0 12px var(--green); }
/* no script / reduced motion: title and the five facts in a plain column */
.orb:not(.on) .orb-cv, .orb:not(.on) .orb-posts, .orb:not(.on) .orb-ticks { display: none; }
.orb:not(.on) .orb-title { position: static; margin-bottom: 34px; }
.orb:not(.on) .orb-facts { position: static; display: grid; gap: 26px; }
.orb:not(.on) .orb-fact { position: static; transform: none; margin: 0 auto; }
.orb-sec { padding-top: clamp(16px, 3vw, 44px); }

/* full-size viewer for trader posts: any img.zoomable opens here, whole, as large as the window allows */
.zoomable { cursor: zoom-in; }
.zoom { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(16px, 4vw, 56px); background: rgba(2,7,26,.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; transition: opacity .25s; cursor: zoom-out; }
.zoom.on { opacity: 1; }
.zoom img { max-width: min(100%, 980px); max-height: 100%; width: auto; height: auto; border-radius: 14px; box-shadow: 0 40px 100px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.18); scale: .96; transition: scale .3s var(--ease); }
.zoom.on img { scale: 1; }
.zoom button { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.zoom button::before, .zoom button::after { content: ""; position: absolute; left: 13px; right: 13px; top: 21px; height: 1.5px; background: #fff; rotate: 45deg; }
.zoom button::after { rotate: -45deg; }
