.hero-governance-graph {
  --graph-cyan: #2dd4de;
  --graph-indigo: #6b7bf7;
  --graph-violet: #9b8cfa;
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 590px;
  font-family: "Open Sans", sans-serif;
  isolation: isolate;
}

.hero-governance-graph::before {
  content: "";
  position: absolute;
  inset: -12% -8% -8%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 58% 43%, rgba(45, 212, 222, .13), transparent 23%),
    radial-gradient(circle at 72% 47%, rgba(107, 123, 247, .17), transparent 43%),
    radial-gradient(circle at 32% 78%, rgba(155, 140, 250, .08), transparent 28%);
  filter: blur(8px);
}

.hero-governance-graph::after {
  content: none;
}

.hero-graph-head,
.hero-graph-foot {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  color: rgba(242, 243, 245, .7);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-graph-head { top: 6px; }
.hero-graph-foot { bottom: 3px; color: rgba(174, 177, 184, .52); }
.hero-graph-head > div,
.hero-graph-foot > div { display: flex; align-items: center; gap: 8px; }
.hero-graph-head strong { color: #f2f3f5; font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.hero-graph-head [data-graph-mode-label] { color: var(--graph-cyan); }
.hero-graph-foot [data-graph-meta] { color: rgba(174, 177, 184, .72); }

.hero-graph-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--graph-cyan);
  box-shadow: 0 0 14px rgba(45, 212, 222, .9);
}

.hero-graph-stage {
  position: absolute;
  inset: 32px -4% 28px -7%;
  min-width: 0;
  overflow: hidden;
  outline: 0;
  cursor: default;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 57% 50%, #000 55%, rgba(0, 0, 0, .86) 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 68% at 57% 50%, #000 55%, rgba(0, 0, 0, .86) 72%, transparent 100%);
}

.hero-governance-graph[data-graph-active="true"] .hero-graph-stage { cursor: grab; }
.hero-governance-graph[data-graph-drag-state="dragging"] .hero-graph-stage { cursor: grabbing; }
.hero-graph-stage:focus-visible::after {
  content: "";
  position: absolute;
  inset: 8% 7%;
  z-index: 30;
  pointer-events: none;
  border: 1px solid rgba(45, 212, 222, .54);
  border-radius: 44%;
  box-shadow: 0 0 0 3px rgba(45, 212, 222, .08);
}

.hero-graph-runtime,
.hero-graph-loading,
.hero-graph-fallback {
  position: absolute;
  inset: 0;
}

.hero-graph-runtime[hidden],
.hero-graph-loading[hidden],
.hero-graph-fallback[hidden] { display: none !important; }

.hero-graph-loading {
  z-index: 9;
  display: grid;
  place-items: center;
  color: rgba(174, 177, 184, .7);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-graph-loading::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(45, 212, 222, .16);
  border-radius: 50%;
  box-shadow: 0 0 54px rgba(107, 123, 247, .1);
  animation: graph-loading 2.8s ease-in-out infinite;
}

@keyframes graph-loading {
  50% { transform: scale(1.08); opacity: .45; }
}

.hero-graph-fallback {
  z-index: 8;
  display: grid;
  place-items: center;
}

.hero-graph-fallback img {
  width: 92%;
  max-height: 88%;
  object-fit: contain;
  opacity: .72;
  filter: saturate(.72) contrast(1.04);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 50%, transparent 92%);
  mask-image: radial-gradient(ellipse at center, #000 50%, transparent 92%);
}

.hero-graph-fallback p {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 16%;
  margin: 0;
  color: rgba(242, 243, 245, .76);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.hero-graph-hint {
  position: absolute;
  left: 2px;
  bottom: 35px;
  z-index: 24;
  max-width: 62%;
  padding: 7px 9px;
  border-left: 1px solid rgba(45, 212, 222, .45);
  background: linear-gradient(90deg, rgba(24, 25, 30, .76), transparent);
  color: rgba(174, 177, 184, .72);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .035em;
  line-height: 1.45;
  pointer-events: none;
}

.hero-graph-controls {
  position: absolute;
  right: 2px;
  bottom: 35px;
  z-index: 28;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-governance-graph[data-graph-status="fallback"] .hero-graph-controls { display: none; }

.hero-graph-control {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(125, 129, 138, .28);
  border-radius: 50%;
  background: rgba(24, 25, 30, .76);
  color: rgba(242, 243, 245, .78);
  font: 600 14px/1 "Open Sans", sans-serif;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.hero-graph-control:hover,
.hero-graph-control:focus-visible,
.hero-graph-control[aria-pressed="true"] {
  border-color: rgba(45, 212, 222, .55);
  background: rgba(45, 212, 222, .09);
  color: #fff;
  outline: 0;
}

.hero-graph-control:focus-visible { box-shadow: 0 0 0 3px rgba(45, 212, 222, .14); }
.hero-graph-control:hover { transform: translateY(-1px); }
.hero-graph-control--engage { width: auto; min-width: 32px; padding: 0 9px; border-radius: 999px; font-size: 10px; letter-spacing: .08em; }

.hero-governance-graph #gg-wrap {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

.hero-governance-graph #gg-side { display: none !important; }

.hero-governance-graph #gg-main {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.hero-governance-graph #gg-3d { inset: 0 !important; }
.hero-governance-graph #gg-3d canvas { touch-action: none; }
.hero-governance-graph #gg-tag,
.hero-governance-graph #gg-hint { display: none !important; }

.hero-governance-graph #gg-context-panel {
  top: 62px !important;
  left: auto !important;
  right: 5% !important;
  width: min(270px, calc(100% - 42px)) !important;
  gap: 7px !important;
  padding: 11px 13px !important;
  border-color: rgba(107, 123, 247, .22) !important;
  border-radius: 11px !important;
  background: rgba(24, 25, 30, .84) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32) !important;
  font-family: "Open Sans", sans-serif !important;
}

.hero-governance-graph #gg-context-panel .ggcp-title { font-size: 13px !important; font-weight: 600 !important; }
.hero-governance-graph #gg-context-panel .ggcp-tag { font-size: 8px !important; }
.hero-governance-graph #gg-context-panel .ggcp-body { font-size: 10px !important; }
.hero-governance-graph #gg-context-panel .ggcp-row { padding: 3px 0 !important; }
.hero-governance-graph #gg-context-panel .ggcp-path,
.hero-governance-graph #gg-context-panel .ggcp-foot { font-size: 8px !important; }
.hero-governance-graph #gg-context-panel .ggcp-action { font: 600 9px/1.2 "Open Sans", sans-serif !important; }
.hero-governance-graph #gg-empty,
.hero-governance-graph #gg-liberr { background: transparent !important; font-family: "Open Sans", sans-serif !important; }

.hero-governance-graph[data-graph-active="true"] .hero-graph-head [data-graph-mode-label] {
  color: #fff;
  text-shadow: 0 0 16px rgba(45, 212, 222, .7);
}

@media (max-width: 1100px) {
  .hero-governance-graph { width: min(100%, 820px); min-height: 620px; margin: 0 auto; }
  .hero-graph-stage { inset-inline: -3%; }
}

@media (max-width: 700px) {
  .hero-governance-graph { min-height: 470px; }
  .hero-graph-stage {
    inset: 28px -7% 24px;
    -webkit-mask-image: radial-gradient(ellipse 86% 70% at 50% 48%, #000 53%, rgba(0, 0, 0, .82) 72%, transparent 100%);
    mask-image: radial-gradient(ellipse 86% 70% at 50% 48%, #000 53%, rgba(0, 0, 0, .82) 72%, transparent 100%);
  }
  .hero-graph-head { top: 2px; }
  .hero-graph-head > span:first-of-type { display: none; }
  .hero-graph-foot { font-size: 8px; }
  .hero-graph-foot > div:last-child { display: none; }
  .hero-graph-hint { left: 0; right: 0; bottom: 31px; max-width: none; padding-right: 180px; font-size: 8px; }
  .hero-graph-controls { right: 0; bottom: 30px; }
  .hero-graph-control { width: 29px; height: 29px; font-size: 12px; }
  .hero-graph-control--engage { width: 29px; min-width: 29px; padding: 0; font-size: 0; }
  .hero-graph-control--engage::before { content: "◎"; font-size: 13px; }
  .hero-governance-graph #gg-context-panel { top: 45px !important; right: 8% !important; width: min(250px, calc(100% - 56px)) !important; }
}

@media (max-width: 420px) {
  .hero-governance-graph { min-height: 420px; }
  .hero-graph-head { font-size: 8px; }
  .hero-graph-head strong { font-size: 9px; }
  .hero-graph-hint { padding-right: 120px; }
  .hero-graph-control[data-graph-action="zoom-in"],
  .hero-graph-control[data-graph-action="zoom-out"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-graph-loading::before { animation: none; }
  .hero-graph-control { transition: none; }
}

/* Reduced motion changes motion, not the desktop information architecture.
   The stacked six-state traversal remains exclusive to the mobile breakpoint. */
@media (prefers-reduced-motion: reduce) and (min-width: 961px) {
  html:not([data-motion-mode="full"]) .crossing-sticky { height: 680px; min-height: 680px; overflow: hidden; }
  html:not([data-motion-mode="full"]) .crossing-frame { height: 100%; }
  html:not([data-motion-mode="full"]) .crossing-scene {
    display: block;
    min-height: 440px;
    padding: 0;
    overflow: hidden;
  }
  html:not([data-motion-mode="full"]) .crossing-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
  }
  html:not([data-motion-mode="full"]) .crossing-route,
  html:not([data-motion-mode="full"]) .crossing-origin,
  html:not([data-motion-mode="full"]) .crossing-destination,
  html:not([data-motion-mode="full"]) .server-authority,
  html:not([data-motion-mode="full"]) .dosimetry-paths { display: block; }
  html:not([data-motion-mode="full"]) .crossing-origin,
  html:not([data-motion-mode="full"]) .crossing-destination { display: flex; }
  html:not([data-motion-mode="full"]) .governance-stage,
  html:not([data-motion-mode="full"]) .stage-01,
  html:not([data-motion-mode="full"]) .stage-02,
  html:not([data-motion-mode="full"]) .stage-03,
  html:not([data-motion-mode="full"]) .stage-04,
  html:not([data-motion-mode="full"]) .stage-05,
  html:not([data-motion-mode="full"]) .stage-06 {
    position: absolute;
    width: 19%;
    min-height: 132px;
    opacity: .67;
  }
  html:not([data-motion-mode="full"]) .governance-stage.is-active { opacity: 1; }
  html:not([data-motion-mode="full"]) .stage-01 { left: 5%; right: auto; top: 48%; }
  html:not([data-motion-mode="full"]) .stage-02 { left: 21%; right: auto; top: 4%; }
  html:not([data-motion-mode="full"]) .stage-03 { left: 40%; right: auto; top: 4%; }
  html:not([data-motion-mode="full"]) .stage-04 { left: 58%; right: auto; top: 55%; }
  html:not([data-motion-mode="full"]) .stage-05 { left: 74%; right: auto; top: 61%; }
  html:not([data-motion-mode="full"]) .stage-06 { left: auto; right: 3%; top: 4%; }
  html:not([data-motion-mode="full"]) .governance-stage::after { width: 8px; height: 8px; }
  html:not([data-motion-mode="full"]) .stage-01::after { left: auto!important; right: -7px!important; top: 58%!important; bottom: auto!important; }
  html:not([data-motion-mode="full"]) .stage-02::after,
  html:not([data-motion-mode="full"]) .stage-03::after,
  html:not([data-motion-mode="full"]) .stage-06::after { left: 50%!important; right: auto!important; top: auto!important; bottom: -7px!important; }
  html:not([data-motion-mode="full"]) .stage-04::after { left: 22%!important; right: auto!important; top: -7px!important; bottom: auto!important; }
  html:not([data-motion-mode="full"]) .stage-05::after { left: 50%!important; right: auto!important; top: -7px!important; bottom: auto!important; }
}

@media (prefers-reduced-motion: reduce) and (min-width: 961px) and (max-width: 1100px) {
  html:not([data-motion-mode="full"]) .governance-stage,
  html:not([data-motion-mode="full"]) .stage-01,
  html:not([data-motion-mode="full"]) .stage-02,
  html:not([data-motion-mode="full"]) .stage-03,
  html:not([data-motion-mode="full"]) .stage-04,
  html:not([data-motion-mode="full"]) .stage-05,
  html:not([data-motion-mode="full"]) .stage-06 { width: 21%; }
  html:not([data-motion-mode="full"]) .stage-01 { left: 4%; }
  html:not([data-motion-mode="full"]) .stage-02 { left: 20%; }
  html:not([data-motion-mode="full"]) .stage-03 { left: 40%; }
  html:not([data-motion-mode="full"]) .stage-04 { left: 56%; }
  html:not([data-motion-mode="full"]) .stage-05 { left: 73%; }
  html:not([data-motion-mode="full"]) .stage-06 { right: 2%; }
}
