/* globe: dark bay with a WebGL network sphere, live HUD labels and three compliance cards */
.glb { text-align: center; isolation: isolate; padding-bottom: clamp(56px, 7vw, 100px); }
/* the band: a night sky a shade deeper than the page, sky light overhead and a low sunrise under the cards */
.glb.darkbay {
  background:
    radial-gradient(900px 440px at 50% -14%, rgba(54, 173, 224, .2), transparent 70%),
    radial-gradient(70% 34% at 50% 108%, rgba(252, 115, 77, .26), transparent 72%),
    radial-gradient(85% 46% at 50% 104%, rgba(201, 120, 196, .2), transparent 74%),
    radial-gradient(600px 400px at 0% 40%, rgba(11, 28, 74, .55), transparent 70%),
    linear-gradient(180deg, #040919 0%, #060E2A 46%, #0A1438 100%);
  border-color: var(--line);
}
.glb-inner { display: flex; flex-direction: column; align-items: center; }
.glb-head { max-width: 880px; display: flex; flex-direction: column; align-items: center; }
.glb .tag { justify-content: center; }
.glb .grad { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fbe6de; }
/* gradient text per word, so the decode animation (opacity/blur on each word) cannot knock it out */
.glb .grad .w { background: linear-gradient(100deg, var(--glb-g1, #fff), var(--glb-g2, var(--peach))); -webkit-background-clip: text; background-clip: text; color: transparent; }
html:not(.js) .glb .grad { background: linear-gradient(100deg, #fff 0%, #fff 40%, var(--peach) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glb .grad .w:nth-child(1) { --glb-g1: #fff; --glb-g2: #fff; }
.glb .grad .w:nth-child(2) { --glb-g1: #fff; --glb-g2: #fdf3ef; }
.glb .grad .w:nth-child(3) { --glb-g1: #fdf3ef; --glb-g2: #f8dfd6; }
.glb .grad .w:nth-child(4) { --glb-g1: #f8dfd6; --glb-g2: var(--peach); }
.glb .lede { margin: 0 auto; max-width: 62ch; }

/* ---------- stage ---------- */
.glb-stage { position: relative; width: 100%; height: clamp(336px, 44vw, 580px); margin: clamp(10px, 1.8vw, 24px) 0 clamp(24px, 3vw, 40px); }
.glb-stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(96%, 820px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(54, 173, 224, .28), rgba(201, 120, 196, .1) 52%, transparent 72%); }
.glb-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55; background-image: radial-gradient(rgba(124, 203, 236, .22) 1px, transparent 1.5px); background-size: 28px 28px; background-position: 50% 50%; -webkit-mask-image: radial-gradient(ellipse 58% 64% at 50% 50%, #000 34%, transparent 80%); mask-image: radial-gradient(ellipse 58% 64% at 50% 50%, #000 34%, transparent 80%); }
.glb-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; outline: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.glb-stage.is-drag { -webkit-user-select: none; user-select: none; }
.glb-stage.is-drag .glb-canvas { cursor: grabbing; }

.glb-corner { position: absolute; width: 16px; height: 16px; border: 0 solid rgba(124, 203, 236, .3); pointer-events: none; transition: opacity .8s ease .3s, transform 1s var(--e-out) .3s; }
.js .glb:not(.scene-failed) .glb-stage:not(.is-in) .glb-corner { opacity: 0; transform: translate(var(--glb-cx, 0), var(--glb-cy, 0)); }
.glb-corner--tl { left: 0; top: 0; border-width: 1px 0 0 1px; border-top-left-radius: 6px; --glb-cx: 28px; --glb-cy: 28px; }
.glb-corner--tr { right: 0; top: 0; border-width: 1px 1px 0 0; border-top-right-radius: 6px; --glb-cx: -28px; --glb-cy: 28px; }
.glb-corner--bl { left: 0; bottom: 0; border-width: 0 0 1px 1px; border-bottom-left-radius: 6px; --glb-cx: 28px; --glb-cy: -28px; }
.glb-corner--br { right: 0; bottom: 0; border-width: 0 1px 1px 0; border-bottom-right-radius: 6px; --glb-cx: -28px; --glb-cy: -28px; }

/* ---------- leader lines ---------- */
.glb-leads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.glb-leads path { fill: none; stroke: rgba(124, 203, 236, .45); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--e-out) .55s; }
.glb-leads circle { fill: #d2eefa; transition: opacity .5s ease 1.2s; }
.glb-leads .glb-lead-o { fill: none; stroke: rgba(124, 203, 236, .55); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: glb-lead 2.6s ease-out infinite; }
.js .glb:not(.scene-failed) .glb-stage:not(.is-in) .glb-leads path { stroke-dashoffset: 1; }
.js .glb:not(.scene-failed) .glb-stage:not(.is-in) .glb-leads circle { opacity: 0; }
@keyframes glb-lead { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- HUD labels ---------- */
.glb-hud { --glb-a: var(--brand-light); position: absolute; z-index: 2; display: grid; gap: 3px; min-width: 176px; padding: 11px 14px 12px; text-align: left; border-radius: 14px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(14, 28, 68, .72), rgba(7, 15, 40, .62)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 12px 32px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06); pointer-events: none; transition: opacity .7s ease, transform .9s var(--e-out), border-color .3s ease, box-shadow .3s ease; transition-delay: calc(var(--d, 0) * 110ms + 200ms), calc(var(--d, 0) * 110ms + 200ms), 0s, 0s; }
.js .glb:not(.scene-failed) .glb-stage:not(.is-in) .glb-hud { opacity: 0; transform: translateY(16px) scale(.96); }
.glb-hud--queue { left: 1%; top: 11%; --d: 0; }
.glb-hud--rate { right: 1%; top: 8%; --d: 1; }
.glb-hud--stop { left: 3.5%; bottom: 12%; --d: 2; --glb-a: var(--mint); }
.glb-hud--quiet { right: 3%; bottom: 14%; --d: 3; --glb-a: var(--violet); }
.glb-hud.is-hot { border-color: color-mix(in srgb, var(--glb-a) 70%, transparent); box-shadow: 0 12px 32px rgba(0, 0, 0, .35), 0 0 0 1px color-mix(in srgb, var(--glb-a) 35%, transparent), 0 0 36px color-mix(in srgb, var(--glb-a) 35%, transparent); }
.glb-k { display: flex; align-items: center; gap: 8px; font-size: .62rem; letter-spacing: 0; color: var(--ink-3); white-space: nowrap; }
.glb-led { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--glb-a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--glb-a) 22%, transparent), 0 0 10px var(--glb-a); animation: fx-pulse 1.6s ease-in-out infinite; }
.glb-hud .glb-v { display: flex; align-items: baseline; gap: 7px; font-family: var(--f-mono); font-weight: 500; font-size: 1.55rem; line-height: 1.15; letter-spacing: -.02em; color: #fff; text-transform: none; font-variant-numeric: tabular-nums; transform-origin: 0 60%; }
.glb-v em { font-style: normal; font-weight: 400; font-size: .64rem; letter-spacing: 0; color: var(--ink-3); }
.glb-v em span { color: var(--ink-2); }
.glb-s { font-size: .6rem; letter-spacing: 0; color: var(--ink-3); white-space: nowrap; }
.glb-hud--queue.is-clear .glb-v, .glb-hud--queue.is-clear .glb-s { color: var(--mint); }
.glb-hud--queue.is-clear { --glb-a: var(--mint); }
.glb-hud--stop.is-wait .glb-led { animation-duration: .5s; }
.glb-hud--stop .glb-v > span, .glb-hud--quiet.is-on .glb-v > span { color: color-mix(in srgb, var(--glb-a) 55%, #fff); }
.glb-bars { display: flex; align-items: flex-end; gap: 2px; height: 18px; margin-top: 3px; }
.glb-bars i { flex: 1; height: 100%; border-radius: 1px; background: linear-gradient(180deg, var(--sky), var(--sky-2)); opacity: .85; transform-origin: 50% 100%; transform: scaleY(var(--v, .08)); transition: transform .3s ease; }

/* the tag that follows the hub node in 3D */
.glb-pin { position: absolute; left: 0; top: 0; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; white-space: nowrap; font-size: .6rem; letter-spacing: 0; color: #d2eefa; background: rgba(6, 14, 40, .84); border: 1px solid color-mix(in srgb, var(--mint) 42%, transparent); box-shadow: 0 6px 20px rgba(0, 0, 0, .4); pointer-events: none; opacity: 0; will-change: transform, opacity; transition: border-color .3s ease, box-shadow .3s ease; }
.glb-pin svg { flex: none; color: var(--mint); }
.glb-pin b { color: var(--mint); font-weight: 500; }
.glb-pin::after { content: ""; position: absolute; left: calc(50% + var(--glb-sx, 0px)); top: 100%; width: 1px; height: 9px; background: linear-gradient(var(--mint), transparent); }
.glb-pin.is-hot { border-color: var(--mint); box-shadow: 0 0 0 1px color-mix(in srgb, var(--mint) 35%, transparent), 0 0 28px color-mix(in srgb, var(--mint) 45%, transparent); }
.glb-pin-t { display: grid; }
.glb-pin-t > span { grid-area: 1 / 1; text-align: center; transition: opacity .16s ease, transform .4s var(--e-out); }
.glb-pin-a { transition-delay: .16s, .1s; }
.glb-pin-b { color: var(--mint); opacity: 0; transform: translateY(5px); }
.glb-pin.is-alt .glb-pin-a { opacity: 0; transform: translateY(-5px); transition-delay: 0s; }
.glb-pin.is-alt .glb-pin-b { opacity: 1; transform: none; transition-delay: .16s, .1s; }
.glb-pin.is-alt { border-color: var(--mint); box-shadow: 0 0 0 1px color-mix(in srgb, var(--mint) 30%, transparent), 0 0 24px color-mix(in srgb, var(--mint) 40%, transparent); }

/* event flags: created by the scene, each rides on the node its event happened at */
.glb-flag { --glb-a: var(--sky); position: absolute; left: 0; top: 0; z-index: 1; padding: 3px 8px 2px; border-radius: 6px; white-space: nowrap; font-size: .6rem; letter-spacing: 0; line-height: 1.5; color: var(--glb-a); background: rgba(6, 14, 40, .84); border: 1px solid color-mix(in srgb, var(--glb-a) 45%, transparent); pointer-events: none; opacity: 0; will-change: transform, opacity; }
.glb-flag.is-mint { --glb-a: var(--mint); }
.glb-flag.is-violet { --glb-a: #CDB0F2; }
.glb-flag::before { content: ""; position: absolute; left: -10px; top: calc(100% + 1px); width: 13px; height: 1px; background: var(--glb-a); opacity: .75; transform-origin: 100% 50%; transform: rotate(-42deg); }
.glb-flag.is-left::before { left: auto; right: -10px; transform-origin: 0 50%; transform: rotate(42deg); }

.glb-note { position: absolute; left: 50%; bottom: 0; z-index: 2; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 12px; white-space: nowrap; font-size: .6rem; color: var(--ink-3); pointer-events: none; transition: opacity .8s ease .9s; }
.js .glb:not(.scene-failed) .glb-stage:not(.is-in) .glb-note { opacity: 0; }
.glb-note > span + span::before { content: ""; display: inline-block; vertical-align: middle; width: 3px; height: 3px; margin: -2px 12px 0 0; border-radius: 50%; background: currentColor; opacity: .6; }
.glb-note b { margin-left: .6ch; color: var(--ink-2); font-weight: 500; letter-spacing: .04em; }

/* ---------- no-WebGL fallback: concentric rings with orbiting dots ---------- */
.glb-fallback { display: none; position: absolute; left: 50%; top: 50%; height: 92%; max-width: 100%; aspect-ratio: 1; transform: translate(-50%, -50%); overflow: visible; }
.glb.glb-nogl .glb-fallback, .glb.scene-failed .glb-fallback, html:not(.js) .glb .glb-fallback { display: block; }
.glb.glb-nogl .glb-canvas, .glb.scene-failed .glb-canvas, html:not(.js) .glb .glb-canvas { display: none; }
.glb.glb-nogl .glb-pin, .glb.glb-nogl .glb-note-rot, .glb.glb-nogl .glb-note-drag, html:not(.js) .glb .glb-pin, html:not(.js) .glb .glb-note-rot, html:not(.js) .glb .glb-note-drag { display: none; }
.glb-fb-line { fill: none; stroke: rgba(124, 203, 236, .32); stroke-width: 1; }
.glb-fb-dash { stroke-dasharray: 3 8; }
.glb-fb-dash2 { stroke-dasharray: 1 10; stroke: rgba(124, 203, 236, .5); }
.glb-fb-spin { transform-origin: 200px 200px; animation: glb-spin 16s linear infinite; }
.glb-fb-s2 { animation-duration: 26s; animation-direction: reverse; }
.glb-fb-s3 { animation-duration: 40s; }
.glb-fb-dot { fill: var(--sky); filter: drop-shadow(0 0 5px var(--sky-2)); }
.glb-fb-mint { fill: var(--mint); filter: drop-shadow(0 0 5px var(--mint)); }
.glb-fb-violet { fill: var(--violet); filter: drop-shadow(0 0 5px var(--bloom)); }
.glb-fb-hub { fill: #fff; filter: drop-shadow(0 0 10px var(--sky-2)); }
.glb-fb-ping { fill: none; stroke: var(--sky); stroke-width: 1.5; vector-effect: non-scaling-stroke; transform-origin: 200px 200px; animation: glb-ping 2.8s ease-out infinite; }
.glb-fb-ping2 { animation-delay: 1.4s; }
@keyframes glb-spin { to { transform: rotate(360deg); } }
@keyframes glb-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(6.5); opacity: 0; } }

/* ---------- cards ---------- */
.glb-cards { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 1080px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
.glb-cards > li { display: flex; }
.glb-card { --glb-a: var(--brand-light); flex: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; column-gap: 16px; row-gap: 6px; padding: 20px 20px 16px; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(14, 28, 68, .62), rgba(8, 17, 46, .56)); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); transition: transform .4s var(--e-out), border-color .3s ease, box-shadow .3s ease; }
.glb-cards li:nth-child(2) .glb-card { --glb-a: var(--mint); }
.glb-cards li:nth-child(3) .glb-card { --glb-a: var(--violet); }
.glb-card.glow::before { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--glb-a) 20%, transparent), transparent 65%); }
.glb-card::after { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--glb-a), transparent); opacity: .5; transform: scaleX(.35); transition: transform .6s var(--e-out), opacity .3s ease; }
.glb-ico { grid-row: 1 / span 2; align-self: start; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--glb-a); background: color-mix(in srgb, var(--glb-a) 13%, transparent); border: 1px solid color-mix(in srgb, var(--glb-a) 32%, transparent); transition: transform .5s var(--e-spring), box-shadow .3s ease; }
.glb-ico svg { display: block; }
/* icon strokes draw in after the card reveals (class selectors: [pathLength] does not invalidate reliably on SVG) */
.glb-d { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--e-out) calc(var(--i, 0) * 90ms + .4s); }
.glb-d + .glb-d { transition-delay: calc(var(--i, 0) * 90ms + .95s); }
.js .glb-cards li:not(.in) .glb-d { stroke-dashoffset: 1; }
.glb-card h3 { margin: 2px 0 0; font-size: 1.08rem; line-height: 1.25; letter-spacing: -.01em; color: #fff; }
.glb-card p { grid-column: 2; margin: 0; font-size: .93rem; line-height: 1.5; color: var(--ink-2); }
.glb-key { grid-column: 1 / -1; align-self: end; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; gap: 10px; font-size: .62rem; color: var(--ink-3); }
.glb-key i { flex: none; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--glb-a) 25%, transparent) 0 40%, #fff 50%, color-mix(in srgb, var(--glb-a) 25%, transparent) 60% 100%) 0 0 / 300% 100%, var(--glb-a); box-shadow: 0 0 8px var(--glb-a); animation: glb-key 2.2s linear infinite; }
.glb-cards li:nth-child(2) .glb-key i { animation-direction: reverse; }
.glb-cards li:nth-child(3) .glb-key i { background: repeating-linear-gradient(90deg, var(--glb-a) 0 4px, transparent 4px 7px); animation: none; }
@keyframes glb-key { from { background-position: 100% 0, 0 0; } to { background-position: 0 0, 0 0; } }
@media (hover: hover) {
  .glb-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--glb-a) 55%, transparent); box-shadow: 0 18px 44px rgba(0, 0, 0, .42), 0 0 0 1px color-mix(in srgb, var(--glb-a) 18%, transparent); }
  .glb-card:hover::after { transform: scaleX(1); opacity: 1; }
  .glb-card:hover .glb-ico { transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 24px color-mix(in srgb, var(--glb-a) 40%, transparent); }
}

.glb-cta { margin-top: clamp(24px, 3vw, 38px); }
.glb-cta .btn { box-shadow: 0 12px 40px -8px rgba(124, 203, 236, .45); }
.glb-cta .btn svg { transition: transform .3s var(--e-out); }
.glb-cta .btn:hover svg { transform: translateX(4px); }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .glb-hud { min-width: 150px; padding: 9px 12px 10px; }
  .glb-hud .glb-v { font-size: 1.25rem; }
  .glb-hud--queue, .glb-hud--rate { top: 4%; }
  .glb-hud--stop, .glb-hud--quiet { bottom: 9%; }
  .glb-hud--queue, .glb-hud--stop { left: 0; }
  .glb-hud--rate, .glb-hud--quiet { right: 0; }
  .glb-cards { gap: 10px; }
  .glb-card { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; padding: 16px 16px 13px; row-gap: 8px; }
  .glb-ico { grid-row: auto; }
  .glb-card p { grid-column: 1; }
  .glb-key { margin-top: 6px; padding-top: 10px; }
}

/* ---------- phone: the canvas bleeds to the panel edges, labels move to the corners ---------- */
@media (max-width: 720px) {
  .glb-stage { height: 372px; margin-top: 14px; }
  .glb-canvas { left: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
  .glb-corner { display: none; }
  .glb-hud { min-width: 0; gap: 1px; padding: 7px 10px 7px; border-radius: 12px; -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, rgba(12, 25, 62, .92), rgba(7, 15, 40, .88)); }
  .glb-hud .glb-v { font-size: 1.05rem; }
  .glb-k { font-size: .56rem; letter-spacing: 0; gap: 6px; }
  .glb-led { width: 5px; height: 5px; }
  .glb-s, .glb-bars { display: none; }
  .glb-hud--queue, .glb-hud--rate { top: 0; }
  .glb-hud--stop, .glb-hud--quiet { bottom: 22px; }
  .glb-note { font-size: .56rem; gap: 10px; }
  .glb-note .glb-note-rot { display: none; }
  .glb-pin { font-size: .54rem; padding: 4px 8px 4px 6px; }
  .glb-flag { font-size: .55rem; padding: 2px 6px 1px; }
  .glb-cards { grid-template-columns: 1fr; }
  .glb-card { grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 6px; }
  .glb-ico { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 13px; }
  .glb-card h3 { font-size: 1rem; }
  .glb-card p { grid-column: 2; font-size: .88rem; }
  .glb-cta, .glb-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .glb-led, .glb-leads .glb-lead-o, .glb-fb-spin, .glb-fb-ping, .glb-key i { animation: none; }
  .glb-leads .glb-lead-o { opacity: 0; }
  .glb-hud, .glb-leads path, .glb-leads circle, .glb-d, .glb-card, .glb-bars i, .glb-corner, .glb-note { transition: none; }
}
