/* Destination: Spatial Node Grid */
.projects{
  position:absolute;
  inset:0;
  z-index:8;
  display:flex;
  align-items:stretch;
  justify-content:center;
  background:#040404;
  opacity:0;
  pointer-events:none;
  will-change:opacity;
  perspective:1750px;
  perspective-origin:50% 52%;
  overflow:hidden;
  isolation:isolate;
  padding:clamp(4px, 1.2vw, 10px);
}

.projects::before{
  content:"";
  position:absolute;
  inset:-18%;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(0,255,99,.05), rgba(0,255,99,0) 35%);
  opacity:0;
  transform:scale(.55);
  transform-origin:center;
  will-change:opacity,transform;
  transition:opacity .35s ease;
}
.projects.transit::before{opacity:.88}

.shell{
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
  padding:clamp(10px,1.8vw,22px);
  border-radius:0;
  background:transparent;
  border:none;
  box-shadow:none;
  transform-origin:center;
  will-change:transform,filter,opacity;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:12px;
  isolation:isolate;
}

.head{
  position:relative;
  z-index:3;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(0,255,99,.18);
}

.head-copy{
  min-width:0;
}

.head-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  text-align:right;
  font-family:var(--cobol-font);
  letter-spacing:.06em;
  color:#8bd1ab;
  font-size:11px;
}

.proposal-link{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:6px 10px;
  border:1px solid rgba(0,255,99,.38);
  border-radius:999px;
  color:#baffca;
  background:rgba(0,255,99,.07);
  font-size:9px;
  letter-spacing:.11em;
  text-decoration:none;
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
}

.proposal-link:hover,.proposal-link:focus-visible{
  border-color:rgba(0,255,99,.8);
  background:rgba(0,255,99,.13);
  box-shadow:0 0 18px rgba(0,255,99,.14);
  outline:none;
}

.hud-drawer-toggle{
  display:none;
  border:1px solid rgba(0,255,99,.42);
  background:rgba(0,0,0,.58);
  color:#c5ffd4;
  border-radius:999px;
  padding:5px 11px;
  font-family:var(--cobol-font);
  letter-spacing:.1em;
  text-transform:uppercase;
  cursor:pointer;
  font-size:10px;
  box-shadow:0 0 8px rgba(0,255,99,.12);
}

.kicker{
  font-size:11px;
  letter-spacing:.28em;
  color:#7ed89a;
  opacity:.85;
}

.head h1{
  font-size:clamp(26px,4.6vw,52px);
  letter-spacing:-.055em;
  margin:4px 0 0;
  color:#a7ffba;
}

.head-copyline{
  margin:6px 0 0;
  max-width:42ch;
  color:#7ec6a7;
  font-family:var(--cobol-font);
  font-size:11px;
  line-height:1.28;
  letter-spacing:.02em;
  opacity:.82;
  text-transform:uppercase;
}

.progress-label{
  font-family:var(--cobol-font);
  color:#7ed89a;
  font-size:12px;
  opacity:.9;
}

.node-interface{
  position:relative;
  display:block;
  height:100%;
  min-height:0;
  gap:10px;
  flex:1;
  min-height:0;
  z-index:7;
}

.node-viewport{
  position:relative;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
}

.hud-panel{
  position:absolute;
  z-index:8;
  border:1px solid rgba(0,255,99,.3);
  border-radius:12px;
  padding:9px 10px;
  background:rgba(2,4,6,.68);
  color:#c7ffdf;
  font-family:var(--cobol-font);
  font-size:11px;
  letter-spacing:.03em;
  text-transform:uppercase;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height:0;
  overflow:hidden;
}

.hud-panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
}

.hud-panel-header .hud-drawer-toggle{
  margin-left:auto;
  flex:0 0 auto;
  padding:4px 9px;
  font-size:9px;
  border-radius:14px;
  height:22px;
}

.hud-panel.collapsed .hud-section{
  display:none;
}

.hud-panel.open .hud-section{
  display:block;
}

.hud-title{
  color:#8fd7b2;
  font-size:10px;
  letter-spacing:.16em;
  margin:0;
}

.hud-panel .hud-line{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#b8ffd2;
}

.hud-panel .hud-line .hud-value{
  color:#dcffe8;
  text-align:right;
  word-break:break-word;
}

.hud-panel .hud-section + .hud-section{
  border-top:1px solid rgba(0,255,99,.18);
  padding-top:7px;
}

.left-hud{
  left:0;
  width: clamp(184px, 20vw, 264px);
  top:0;
}

.right-hud{
  right:0;
  width: clamp(192px, 21vw, 278px);
  top:0;
}

.nearby-nodes{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-height:0;
  overflow:auto;
  padding-right:3px;
}

.nearby-node{
  border:1px solid rgba(0,255,99,.25);
  border-radius:7px;
  padding:6px 8px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  background:rgba(0,255,99,.03);
  line-height:1.18;
  cursor:pointer;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.nearby-node.active,
.nearby-node.target{
  border-color:rgba(0,255,99,.74);
  box-shadow:0 0 10px rgba(0,255,99,.2);
  background:rgba(0,255,99,.09);
}

.nearby-node .name{
  font-size:10px;
  letter-spacing:.1em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:block;
}

.nearby-node .meta{
  font-size:9px;
  color:#95ffc7;
  text-align:right;
  white-space:nowrap;
}

.nearby-node .distance{
  font-size:9px;
  color:#d4ffe6;
  opacity:.96;
}

.nearby-node .node-types{
  color:#8de2bf;
  font-size:9px;
  opacity:.85;
}
