.custom-btn {
  position: relative;
  background: #3c3b31;
  color: #dccb9b;
  border: 1px solid #676551;
  width: 140px;
  height: 40px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  outline: none;
  cursor: pointer;
  background-clip: padding-box;
  box-sizing: border-box;
  display: inline-block;
  padding: 0;
  margin: 0;
  overflow: visible;
  z-index: 1;
  transition: color 0.12s;
}

/* TOP line (animates) */
.custom-btn::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 36px;
  height: 1px;
  background: #BEAB81;
  z-index: 2;
  pointer-events: none;
  transition: width 0.2s linear, background 0.12s;
}
.custom-btn:hover::before {
  width: calc(100% + 2px);
}
.custom-btn:hover:active::before {
  background: #a6764b;
}

/* LEFT line (animates) */
.custom-btn::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 1px;
  height: 16px;
  background: #BEAB81;
  z-index: 2;
  pointer-events: none;
  transition: height 0.2s linear, background 0.12s;
}
.custom-btn:hover::after {
  height: calc(100% + 2px);
}
.custom-btn:hover:active::after {
  background: #a6764b;
}

/* BOTTOM line (animates) */
.custom-btn .br-corner-h {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 36px;
  height: 1px;
  background: #BEAB81;
  z-index: 2;
  pointer-events: none;
  display: block;
  transition: width 0.2s linear, background 0.12s;
}
.custom-btn:hover .br-corner-h {
  width: calc(100% + 2px);
}
.custom-btn:hover:active .br-corner-h {
  background: #a6764b;
}

/* RIGHT line (animates) */
.custom-btn .br-corner-v {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 1px;
  height: 16px;
  background: #BEAB81;
  z-index: 2;
  pointer-events: none;
  display: block;
  transition: height 0.2s linear, background 0.12s;
}
.custom-btn:hover .br-corner-v {
  height: calc(100% + 2px);
}
.custom-btn:hover:active .br-corner-v {
  background: #a6764b;
}

/* BUTTON TEXT COLOR ON CLICK */
.custom-btn:hover:active {
  color: #a6764b;
}

/* INSTANT COLOR CHANGE ON CLICK (override transition for active) */
.custom-btn:hover:active,
.custom-btn:hover:active::before,
.custom-btn:hover:active::after,
.custom-btn:hover:active .br-corner-h,
.custom-btn:hover:active .br-corner-v {
  transition: none !important;
}