/* cgraph.css: the Constellation adaptation of the landing (cgraph.js). Over the same liquid background, no purple. */
#cg { position: fixed; inset: 0; z-index: 6; opacity: 0; pointer-events: none; transition: opacity .6s ease; touch-action: none; cursor: grab; }
body.cg-on #cg { pointer-events: auto; }
#stage, .ft, .hint, .lens-ring, .ld-cta { transition: opacity .55s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
body.cg-on #stage { opacity: 0; transform: scale(.96) !important; pointer-events: none; }
body.cg-on .ft, body.cg-on .hint, body.cg-on .lens-ring, body.cg-on .ld-cta { opacity: 0; pointer-events: none; }
.cg-ui { position: fixed; inset: 0; z-index: 7; pointer-events: none; }
.cg-ui > * { pointer-events: auto; }
.cg-cap { position: fixed; left: 18px; bottom: 22px; margin: 0; padding: 10px 12px; background: rgba(10,10,10,.72); color: #F4F1EE;
  font: 14px/1.35 "Space Grotesk", system-ui, sans-serif; max-width: calc(100vw - 110px); }
.cg-cap b { display: block; font-weight: 500; }
.cg-cap span { color: #B4B4B4; font-size: 12px; letter-spacing: .02em; }
.cg-card { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(34rem, calc(100vw - 40px)); box-sizing: border-box;
  padding: 26px 24px; background: rgba(10,10,10,.78); color: #F4F1EE; font-family: "Space Grotesk", system-ui, sans-serif; }
.cg-card .k { font: 11px/1 "Space Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: #B4B4B4; margin: 0 0 14px; }
.cg-card h2 { font-size: clamp(22px, 4vw, 30px); line-height: 1.15; font-weight: 500; margin: 0 0 12px; }
.cg-card p { font-size: 15.5px; line-height: 1.55; color: #D8D4CF; margin: 0 0 22px; }
.cg-card .cg-go { min-height: 48px; padding: 0 22px; border: 1px solid #F4F1EE; background: #F4F1EE; color: #0A0A0A; font: 500 15px/1 "Space Grotesk", system-ui, sans-serif; cursor: pointer; }
.cg-card .cg-go:hover, .cg-card .cg-go:focus-visible { background: transparent; color: #F4F1EE; outline: none; }
@media (prefers-reduced-motion: reduce) { #cg, #stage, .ft, .hint, .lens-ring, .ld-cta { transition: none; } }
/* the ONE view button (Luca 09:48): Members' map <-> Your network (admin: also Everyone); no dropdown */
.cg-view { position: fixed; right: 14px; top: var(--cg-top, 72px); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  border: 1px solid rgba(244,241,238,.35); background: rgba(10,10,10,.55); color: #F4F1EE; cursor: pointer;
  font: 12px/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.cg-view .now { color: #F4F1EE; }
.cg-view .to { color: #B4B4B4; }
.cg-view .to::before { content: "\2192\00a0"; }
.cg-view:hover, .cg-view:focus-visible { border-color: #F4F1EE; outline: none; }
.cg-view:hover .to, .cg-view:focus-visible .to { color: #F4F1EE; }
.cg-dim { position: fixed; right: 14px; top: calc(var(--cg-top, 72px) + 54px); min-height: 44px; min-width: 64px; padding: 0 14px;
  border: 1px solid rgba(244,241,238,.35); background: rgba(10,10,10,.55); color: #F4F1EE; cursor: pointer;
  font: 12px/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.cg-dim:hover, .cg-dim:focus-visible { border-color: #F4F1EE; outline: none; }
#cg { touch-action: none; }
@media (max-width: 600px) { .cg-dim { right: 10px; top: calc(var(--cg-top, 72px) + 48px); font-size: 11px; min-height: 40px; } }
@media (max-width: 600px) { .cg-view { right: 10px; font-size: 11px; min-height: 40px; padding: 0 12px; } }
/* the entrance pulse (afternoon round): the cards stay visible while the wavefront pushes them out past the edges */
body.cg-pulse #stage { pointer-events: none; }
body.cg-pulse .ft, body.cg-pulse .hint, body.cg-pulse .lens-ring, body.cg-pulse .ld-cta { opacity: 0; pointer-events: none; }
/* the key (Luca nkjlt77tg970, 26 Nov): what a filled dot, a ring, a solid and a dotted line mean */
.cg-key { position: fixed; right: 14px; top: calc(var(--cg-top, 72px) + 108px); display: flex; flex-direction: column; gap: 6px; padding: 8px 10px;
  background: rgba(10,10,10,.5); color: #B4B4B4; font: 11px/1.2 "Space Mono", ui-monospace, monospace; pointer-events: none !important; }
.cg-key span { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.cg-key i { display: inline-block; flex: none; }
.cg-key .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.35); margin: 0 4px; }
.cg-key .ring { width: 9px; height: 9px; border-radius: 50%; border: 1.3px solid rgba(244,241,238,.7); margin: 0 3px; }
.cg-key .ln { width: 16px; border-top: 1.5px solid rgba(220,170,255,.8); }
.cg-key .ln.dash { border-top-style: dotted; }
@media (max-width: 600px) { .cg-key { right: 10px; top: calc(var(--cg-top, 72px) + 96px); font-size: 10px; gap: 5px; } }
/* the waterfall (Luca eth5dte7gn00, 26 Nov): where the WebGL liquid runs, its own dark water makes the header readable,
   so the gradient bar goes in Constellation mode; the canvas fallback keeps it */
html.bgf-fall body.cg-on .hd::before { opacity: 0; transition: opacity 1s ease; }

/* fix-map-ui (Luca, notes 8alike1h4j90 + oix9uuda2ch0, 26 Nov): the legend bottom right, above the corner menu;
   on a phone 3D / Flat on the view switch's own line, just left of it */
.cg-key { top: auto; bottom: calc(var(--m, 14px) + 64px + 20px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 600px) {
  .cg-key { top: auto; right: 10px; bottom: calc(var(--m, 14px) + 64px + 18px + env(safe-area-inset-bottom, 0px)); }
  .cg-dim { top: var(--cg-top, 72px); right: calc(10px + var(--cg-vw, 150px) + 8px); }
}

/* fix-mobile-motion (Luca 27 Nov): a phone fades the photos away more slowly; transform + opacity only.
   Reduced motion: no scale, no flight, a plain cross-fade. */
@media (max-width: 720px) { #stage, .ft, .hint, .lens-ring, .ld-cta { transition: opacity .8s ease, transform 1s cubic-bezier(.2,.7,.2,1); } #cg { transition: opacity .8s ease; } }
@media (prefers-reduced-motion: reduce) {
  #cg, #stage, .ft, .hint, .lens-ring, .ld-cta { transition: opacity .35s linear !important; }
  body.cg-on #stage { transform: none !important; }
}
/* Forma note ynxrq9a0idk0 (Luca 27 Nov, phone view): the legend bottom left on a phone; a node's caption sits above it */
@media (max-width: 600px) {
  .cg-key { right: auto; left: 10px; top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .cg-cap { left: 10px; bottom: calc(14px + 92px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 96px); }
}
