.header{
  position:sticky;
  top:20px;
  z-index:100;
  width:min(570px,calc(100% - 32px));
  height:56px;
  margin:20px auto 59px;
  padding:5px 8px 5px 13px;
  display:flex;
  align-items:center;
  justify-content:initial;
  gap:0;
  border:1px solid #3d3b3b;
  border-radius:999px;
  background:#191717;
  box-shadow:0 8px 16px rgba(0,0,0,.2),inset 0 1px 1px rgba(255,255,255,.12);
  transition:transform .38s cubic-bezier(.22,1,.36,1),opacity .28s ease,visibility 0s linear 0s;
}
.header--footer-hidden{
  transform:translateY(calc(-100% - 40px));
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:transform .38s cubic-bezier(.22,1,.36,1),opacity .28s ease,visibility 0s linear .38s;
}
.header .brand{
  flex:none;
  display:grid;
  place-items:center;
  width:52px;
  height:42px;
  transform:none;
}
.header .brand img{
  width:38px;
  height:38px;
  object-fit:contain;
  filter:brightness(0) invert(1);
}
.header__divider{flex:none;width:1px;height:22px;background:#383636}
.header nav{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:space-evenly;
  gap:5px;
  min-width:0;
  margin:0 8px;
}
.header nav button,
.header__resume{
  flex:none;
  height:42px;
  border:0;
  border-radius:999px;
  font:400 16px/1 'Satoshi','DM Sans',sans-serif;
  letter-spacing:-.025em;
  white-space:nowrap;
}
.header nav button{
  min-width:82px;
  padding:0 12px;
  background:transparent;
  color:#a19f9f;
  transition:background .2s ease,color .2s ease;
}
.header nav button.active,
.header nav button[aria-current="page"]{
  background:#fff;
  color:#191717;
}
.header nav button:not(.active):hover{color:#fff}
.header nav[data-sliding-indicator]{
  position:relative;
  isolation:isolate;
}
.header__indicator{
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  border-radius:999px;
  background:#fff;
  pointer-events:none;
}
.header nav[data-sliding-indicator] button{
  position:relative;
  background:transparent;
  color:#bababa;
  mix-blend-mode:difference;
}
.header nav[data-sliding-indicator] button:is(.active,:hover){
  color:#fff;
}
.header__resume{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  gap:7px;
  min-width:128px;
  padding:0 14px;
  background:#fff;
  color:#191717;
  transition:background .2s ease,transform .2s ease;
}
.header__resume:hover{background:#ececec;transform:translateY(-1px)}
.header__resume svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.header button:focus-visible,.header .brand:focus-visible,.header__resume:focus-visible{outline:2px solid #fff;outline-offset:3px}
#work{scroll-margin-top:100px}
@media(max-width:680px){
  .header{top:12px;width:calc(100% - 16px);height:46px;margin:12px auto 42px;padding:4px 5px}
  .header .brand{width:32px;height:36px}
  .header .brand img{width:36px;height:36px}
  .header__divider{height:20px}
  .header nav{gap:0;margin:0 3px}
  .header nav button,.header__resume{height:34px;font-size:12px;letter-spacing:-.02em}
  .header nav button{min-width:0;padding:0 7px}
  .header__resume{min-width:0;gap:3px;padding:0 8px}
  .header__resume svg{width:13px;height:13px}
  #work{scroll-margin-top:72px}
}
@media(prefers-reduced-motion:reduce){
  .header,.header--footer-hidden{transition:none}
}
