/* =========================================================
   SIDE NAV — shared vertical navigation, all pages
   ========================================================= */

body{ padding-left:0; transition:padding-left .3s var(--ease); }
@media (min-width:901px){ body{ padding-left:86px; } }

.side-nav{
  position:fixed; top:0; left:0; bottom:0; z-index:500;
  width:86px;
  display:flex; flex-direction:column; align-items:center;
  padding:28px 0 26px;
  background:rgba(7,6,8,.72);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border-right:1px solid var(--line-soft);
  opacity:0; transform:translateX(-18px);
  animation:snIn .7s var(--ease) .15s forwards;
}
@keyframes snIn{ to{ opacity:1; transform:translateX(0); } }
@media (max-width:900px){ .side-nav{ display:none; } }

/* logo / home */
.sn-logo{
  font-family:var(--disp); font-size:22px; font-weight:600; color:var(--paper);
  width:42px; height:42px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; border:1px solid var(--line); position:relative;
  transition:border-color .35s var(--ease), transform .4s var(--ease), box-shadow .35s var(--ease);
}
.sn-logo::after{
  content:""; position:absolute; inset:-1px; border-radius:50%;
  border:1px solid var(--accent); opacity:0; transform:scale(.7);
  transition:opacity .35s var(--ease), transform .35s var(--ease);
}
.sn-logo:hover{ transform:scale(1.08) rotate(-6deg); box-shadow:0 0 26px var(--accent-soft); }
.sn-logo:hover::after{ opacity:1; transform:scale(1); }

/* thin separators either side of the link stack */
.sn-rule{ width:22px; height:1px; background:var(--line); margin:26px 0; flex:0 0 auto; }

/* link stack */
.sn-links{ display:flex; flex-direction:column; align-items:center; gap:38px; flex:1; justify-content:center; }

.sn-link{
  position:relative; display:flex; flex-direction:column; align-items:center;
  color:var(--muted); text-decoration:none; cursor:pointer;
  padding:4px 0;
}
.sn-letters{ display:flex; flex-direction:column; align-items:center; line-height:1; }
.sn-letters span{
  display:block; font-family:var(--mono); font-weight:600; font-size:12px;
  letter-spacing:.02em; padding:1.5px 0;
  transition:transform .45s var(--ease), color .35s var(--ease), letter-spacing .35s var(--ease);
  transition-delay:calc(var(--i, 0) * 28ms);
}
.sn-link:hover .sn-letters span, .sn-link.active .sn-letters span{ color:var(--paper); transform:translateX(2px); }
.sn-link.active .sn-letters span{ color:var(--accent); }

/* active dot, left of the stack */
.sn-link::before{
  content:""; position:absolute; left:-16px; top:50%; translate:0 -50%;
  width:5px; height:5px; border-radius:50%; background:var(--accent);
  opacity:0; transform:translate(0,-50%) scale(.4);
  transition:opacity .35s var(--ease), transform .35s var(--ease);
}
.sn-link.active::before{ opacity:1; transform:translate(0,-50%) scale(1); }

/* pop-out word label, right of the bar */
.sn-pop{
  position:absolute; left:100%; top:50%; margin-left:16px;
  transform:translate(-10px,-50%) scale(.88); translate:0 0;
  white-space:nowrap; pointer-events:none;
  background:var(--surface); border:1px solid var(--line); color:var(--paper);
  padding:9px 18px; border-radius:999px;
  font-family:var(--mono); font-size:12px; letter-spacing:.09em; font-weight:600;
  opacity:0; transition:opacity .4s var(--ease), transform .45s var(--ease);
  box-shadow:0 16px 34px -12px rgba(0,0,0,.65);
}
.sn-pop::before{
  content:""; position:absolute; right:100%; top:50%; translate:0 -50%;
  width:16px; height:1px; background:var(--line);
}
.sn-link:hover .sn-pop{ opacity:1; transform:translate(0,-50%) scale(1); }

/* footer status pulse */
.sn-foot{ display:flex; flex-direction:column; align-items:center; gap:10px; }
.sn-status{ position:relative; width:8px; height:8px; }
.sn-status .pulse{ display:block; width:8px; height:8px; border-radius:50%; background:var(--thread); }
.sn-status .pulse::after{
  content:""; position:absolute; inset:-6px; border-radius:50%; border:1px solid var(--thread);
  animation:pulse 2.4s ease-out infinite;
}
@keyframes pulse{ 0%{ transform:scale(.5); opacity:.9; } 100%{ transform:scale(1.7); opacity:0; } }

/* ---------- mobile ---------- */
.sn-mobile-toggle{
  display:none; position:fixed; top:20px; right:20px; z-index:520;
  width:46px; height:46px; border-radius:50%;
  background:rgba(7,6,8,.72); backdrop-filter:blur(14px);
  border:1px solid var(--line); flex-direction:column; align-items:center; justify-content:center; gap:5px;
  cursor:pointer;
}
.sn-mobile-toggle span{
  width:18px; height:1px; background:var(--paper); display:block;
  transition:transform .35s var(--ease), opacity .3s var(--ease);
}
.sn-mobile-toggle.open span:nth-child(1){ transform:translateY(3px) rotate(45deg); }
.sn-mobile-toggle.open span:nth-child(2){ transform:translateY(-3px) rotate(-45deg); }

.sn-mobile-panel{
  position:fixed; inset:0; z-index:510;
  background:var(--bg-soft);
  display:flex; flex-direction:column; justify-content:center; gap:8px;
  padding:0 var(--pad);
  opacity:0; pointer-events:none; transform:translateY(-12px);
  transition:opacity .4s var(--ease), transform .4s var(--ease);
}
.sn-mobile-panel.open{ opacity:1; pointer-events:auto; transform:translateY(0); }
.sn-mobile-panel a{
  font-family:var(--disp); font-size:clamp(30px,9vw,44px); font-weight:500; color:var(--paper-70);
  padding:10px 0; border-bottom:1px solid var(--line-soft);
  display:flex; align-items:center; justify-content:space-between;
  transition:color .3s var(--ease), padding-left .3s var(--ease);
}
.sn-mobile-panel a span{ font-family:var(--mono); font-size:12px; color:var(--muted); }
.sn-mobile-panel a:hover, .sn-mobile-panel a.active{ color:var(--paper); padding-left:8px; }

@media (max-width:900px){
  .sn-mobile-toggle{ display:flex; }
}
